I would like to use a offset function for some excel ranges, just like this one here, but with modern Activities I can’t seem to find a way to do that.
I use a single excel process scope for a excel which I retrieve through an email.
Then I search for a specific string to find the title/field name of the field I want, in this case a personal number.
Afterwards I would like to read the cell value, but not from the field name, but the cell right next to it.
So for example, if the Find Address activity returns “C3”, I would like to read from “D3”.
Below are the steps you need to do. Let’s Take your Example of “C3”.
Split C3 and Put “C” in one variable_1 and “3” in another variable_2.
Use ‘Assign’ Activity and in the value type Asc(Variable_1) and Save it to the Variable_3 of type int. This will Convert the Character into integer.
Use another ‘Assign’ Activity and in the Value type Chr(Variable_3 +1) and save it to Variable_1. Now, if Variable_1 Previously has C, it is Converted to D.
Using another assign Activity you can again concat the Variable_1 & Variable_2 and then got the “D3” Cell number.
thank you for your answer.
I tried it but the Intellisense doesn’t seem to want me to add the UiPath.Excel.Helpers.ExcelUtilities Package. This discussed that problem, but it seems there wasn’t a real solution for that, other than hoping it will show up sometimes.
Edit:
Okay, it seems it resolved itself somehow after giving me a bunch of error messages.
Well, thank you! Solved my issue.