Hello,
I have an issue with lookup data-table activity.
i.e
I have two tables as shown in picture.i want to lookup the value from table 1 to table 2,
but table 2 contains data in 10000’s.Hence,in my condition its not appreciated to use “For each” activity to table 2.
Is there any way to lookup table 1, in table 2 and simultaneously pass the values to all the valid rows.
Use an assign Activity
Left side: dtResult - datatype of Datatable
Use an assign Activity
Left Side : dtResult
Right side Respekt the Line breaks)
(From d in dt2.asenumerable
Join dl In dt1.asenumerable
On d(0).toString.trim Equals dl(0).toString.trim
Let ra= dl.Itemarray
Select dtResult.Rows.Add(ra)).CopyToDataTable
If it is in excel
Then use write cell for first vlookup formula
Then use read range
So it will give u total rows using Datatable.Rows.Count
Then use auto fill range in that give range say if you want to use formula from
B3 to end then
Source B3
Destination “B3:B”+(Datatable.Rows.Count+1).ToString
It will apply B3 ie lookup formula to givrn range