In the Excel file we have column “Names including start date and end date” but in the web portal we have divided the excel column names into 2 parts like “Name as Rows and start date and end date as Columns seperately”. Now we want to set the dates against their respective Names in web portal. We need to match the Name first and then dates. If Name is not matched then look for the matching name in the next rows in the web portal.
Here I am sharing screenshots of excel file and webportal.
The data is not exactly matching with the data on web site…that should ideally match…
There is no proper separation between the column name and row name…will the columns names be always Actual date and start date …if yes then we can replace that and try using other part as name…
For the first point better get data exactly matching if not may be we need to go with fuzzy selector and try…
And the approach provided above is still the same on what you need to do…
And that shpuld eb done inside a for each tow in datatable activity where datatble is read from
This excel
For replaceing actual date or start date and get the name use currentrow("ColName").ToString.Replace("Actual Date","").Replace("Start Date","")
And to check if it contains start or actual use currentrow("ColName").ToString.Contains("Actual") this would return true if presnet else false