I have an excel where there are three columns. I would like to look for a certain value in all rows of column1 and if that value exists, get the corresponding value in column3.
So, according to the image of my table, if I look for the value “33” in column1, it should bring me the value “green”.
Remembering that the rows of all columns in this table are not constant, that is, the value 33 can appear in different rows, but it is always in column1.
@req7
at beginning you can use the filter datatable activity and filter the datatable on column1 for a particular value (dynamize it within a variable). For the returning rows you van retrieve the column3 value from corresponfing row
Here is a one-liner for getting an IEnumerable(Of String) of distinct matching results for MyValue after you used ReadRange activity to get MyDataTAble
From row In MyDataTable.Select(String.Format("column1={0}", MyValue)) Select row.Field(Of String)("column3") Distinct