Hi Team,
I want to add the next date in excel compare to latest date in excel.
Actual:
Expected:
Appreciate your help!
@Palaniyappan @lakshman @sarathi125
Hi Team,
I want to add the next date in excel compare to latest date in excel.
Actual:
Expected:
Appreciate your help!
@Palaniyappan @lakshman @sarathi125
Is excel file contains only one row of data ?
Hi @lakshman,
Its having multiple rows of data,based on latest date and last row need to add next date.
Regards,
Rajesh
Use Read Range activity to read the data from excel file and will give output as DataTable. And then use ForEach Row activity to iterate one by one row.
ForEach row in inputDT
int index = inputDT.Rows.IndexOf(row)+2
If CDate(row("Validation Date").Tostring).Tostring("dd/MM/yyyy").Equals(Now.Tostring("dd/MM/yyyy"))
Then use Write Cell activity and pass below values
Range: "A"+(index+1).Tostring
Value: Now.AddDays(1).ToString("dd/MM/yyyy")
Thank you @lakshman .
This code working for my scenario.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.