Can anyone help me in writing the below formula from Uipath using config file
Here Input file path varies from the way excel reads the path. How can I resolve it?
Input File Path C:\UiPath_Project\capital-grant-automation-phase-9-controls\Data\Input\IL User inputes for Grant automation system Development.xlsx
Formula :-
“=IF(XLOOKUP(A115,‘C:\UiPath_Project\capital-grant-automation-phase-9-controls\Data\Input/[IL User inputes for Grant automation system Development.xlsx]Allowed Cubes’!$B$7:$B$21,‘C:\UiPath_Project\capital-grant-automation-phase-9-controls\Data\Input/[IL User inputes for Grant automation system Development.xlsx]Allowed Cubes’!$B$7:$B$21,”“Disallowed cube”“)=”“Disallowed cube”“, ““Disallowed cube””, ““Allow Cube””)”
Just sharing my thought. Not sure whether will it work or not.
we cannot store the values in config XLS with equal to symbol since it will consider as formula in config itself. So we can use the entire value without equal to like below in one of the row in config value. Thanks.
ExcelFormulaKey →
IF(XLOOKUP(A115,‘C:\UiPath_Project\capital-grant-automation-phase-9-controls\Data\Input/[IL User inputes for Grant automation system Development.xlsx]Allowed Cubes’!$B$7:$B$21,‘C:\UiPath_Project\capital-grant-automation-phase-9-controls\Data\Input/[IL User inputes for Grant automation system Development.xlsx]Allowed Cubes’!$B$7:$B$21,”“Disallowed cube”“)=”“Disallowed cube”", ““Disallowed cube””, ““Allow Cube””)
In this case the best practice to keep the formula string in text file and use below steps to retrieve it as dynamic way to enter the data into excel spreadsheet.
Place the below expression in a text file and place it under your data folder of the project.
Use read text file activity and read the above expression into string variable.
Use the below string format function to modify the formula with dynamic values like Data table row count, folder path, Excel file path and ast row of datatable+5