I want to search for today’s date from excel file and return the cell right next to it. But I feel it difficult to go through because all that I find in youtube is run by old version. Can anyone help me figure out with latest version?
Hi @kjy03171
Welcome to UiPath,
You can try below method:
- Use Excel File
- Read Range → output
dtExcel(DataTable) - For Each Row in Data Table
- If condition →
row("DateColumn").ToString.Contains(Now.ToString("dd/MM/yyyy")) - Assign →
result = row("NextColumn").ToString
happy automation
Hi @kjy03171
- Range – The column where the value you want to search exists (Lookup column).
- Source of results – The column from which you want to retrieve the output value.
- Value to lookup – The value you want to search for (in your case, the Date).
Hope this helps ![]()
Hi @kjy03171
You can also try this if you want the cell index
CellValue = Chr(Asc(index.Substring(0,1)) + 1).ToString + index.Substring(1)
Hope this helps!

