Hello to all,
I have a problem that I can not solve.
In practice I would like to get the range of a column starting from another specific column.
Example: I tell the robot to read column “B” (or “Age”) and I would like to get the range of the “Name” column (which in this case is “D”)
Someone could help me with my problem, kindly.
thanks to the whole community,
fahad
Thank you so much for the answer @Madhavi
… but I know you misunderstood my request.
what I would like to get as a result is the letter in which the “Name” column is located:
in my case it is in column D … but I do not know in what column is “Name”, so I would like to find the index “D” as a result when I ask the robot to look for the column in it is the word “First name”
Sob
(Bindu)
August 27, 2018, 10:54am
4
Hi @momi_fede
I think this might be useful for you.
Hi Tomas,
Yes you can do this.
You will need the row number within the DataTable and the column Index.
To get the row number, you can simply have a counter inside a loop (but that can be slow). If you are using vb.net to pull out the row that contains a word then you can use the .IndexOf() function, I believe.
For Example,
rowIndex =(datatableVariable.Rows.IndexOf(datatableVariable.AsEnumerable().Where(Function(row) row(0).ToString.Contains(“word”)).ToArray()(0))+1).ToString
Then you need …
1 Like