Lookup Range posición de celda en la tabla de datos

Holaa

Tengo una tabla en excel y necesito obtener la posición especifica del “Saldo acumulado” del “Periodo” 2 en este caso seria E4
intente con la actividad Lookup Range pero me sale null
alguien sabe como puedo obtener la posición del saldo acumulado si el perdido puede variar?

Hey @murcillolaura
Try using For Each Row activity.
First - read the entire table into a DataTable.
Next - Use expression:
indexPeriodo(int) = dt.AsEnumerable().ToList().FindIndex(Function(row) row("Periodo").ToString.Trim = "2")
If indexPeriodo >= 0, use:
valueSaldo(string) = dt.Rows(indexPeriodo)("Saldo acumulado").ToString

Hi @murcillolaura

Try Look up Datatable activity

Hope this helps!

@murcillolaura

Welcome to the community

First lookup range might be failing because of the datatype differences …check on the same…or the display vaalue of period and backend value might be different

Also if you want to filter based on period only then read the data and use filter datatable to filter on period and get the value from the first row directly…or lookup datatavle also would work

Cheers