Hi Team,
I have three columns - Consultant,DocumentDate,ServiceDate
I have three scenarios,
If the ServiceDate consists of the year ‘1900’ then use the document date.
If Consultant has 3 (First middle Last) names, then remove the Middle name. and if it has more than 3 then ignore.
Concatenate both Consultant and ServiceDate.
I have tried using keystrokes, but it is taking a more time and updating each row.
Is there any possibility to do faster without keystrokes.
The simplest and fastest way would be - Read the excel and create datatables for all the 3 actions that you mentioned, Perform the 3 actions programatically to the datatables and write them back to excel.
I have tried the second scenario. but couldn’t able to get the result,
could you please assist. Sample File.xlsx (72.4 KB) MiddleName_Bot.xaml (10.3 KB)
Loop through datatable and for each row, Check if the column that has service date has year 1900, if there is a match then assign the column value of ‘Document date’ to column ‘Required service end date’.