This is an excel sheet i want to find the Cell range index of column name - “Item”, for it i am using
Convert.Tochar(65+dt.columns.IndexOf(“Item”)),
but every time this is giving me range value “E”, i think it is not counting blank cells,
any suggestions that how can i get the original range - “G”,
and this is the case for any column i want to take out the range. @ppr, @Palaniyappan, @ClaytonM
Feel free for clarifications .!!
Thanks
but is their a way using any query like i used or function , that i can use , i dont want to use look up range basically due to some job requirements .
Thanks !!
Hello @Shikhar_Tandon
your requirement is clear but your data is not.
As I can see from your screenshot your actual data range starts from C4 (I assuming that it is your start range when you are reading this excel)
but when you do 65 + column.index then there is assumption that your data range starts from A1 [as char 65 represents alphabate A].
kindly let us know how you are reading your excel file, also let us know if start range is dynamic or not.
yes @AkshaySandhu my start range is dynamic , i am reading the excel by passing the first column name that is here is " unit " in a look up range which gives me the starting position or range of data.
Here is an activity called “Find”. Using this activity you can able to find the string in the excel and it will return the CellInfo and row index. Below I have attached the sample for you.