i need to add enddate column with 3 days and put in Run column how i will achieve it kindly help
You can take a read range activity and Pass the range E1:E4 and select the Add Headers option from properties of Read range. Create a datatable as a output of this. It will store only end date value.
Hi @Aravinthan,
Try the below approach:
1.Use Read Column activity to read data of End date column and store the result in Datatable in Dt
2. For each row in DT
Use DateAdd(“d”,3,Row) to add three days
3. Use Write Range or cell activity to write data in Run Column.
I hope this helps.
Follow below steps to do this:
-
Use Read Range Activity to read the data from Excel and will give output as dataTable and say ‘DT’
-
Then use For Each Row Activity to itreate that dataTable.
ForEach row in DT Int32 index = DT.rows.IndexOf(row)+2 String newDate = DateTime.ParseExact(row("End Date").Tostring, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture).AddDays(3).Tostring("yyyy-MM-dd")
Use Write Cell Activity and pass below
Range: “G”+index.Tostring
Value: newDate
Bro it possible to upload the xaml iam trying to write the cell has you told but pasting entire dataset … kindly help me with xaml file
I have tried iam getting string is not proper format pls upload me xaml file it will be much help full
Could you please show me screenshot of write cell Activity
In excel find the exact formula. For eg. I believe you should use DATE function and add 3 to your date(E2). You can use write cell to directly Write this formula to excel.
@Aravinthan
Can you check the attached file.
ExcelDateDemo.zip (7.9 KB)
PFS bro…
I said use Write Cell Activity but not Write Range Activity.
Thanks so much bro much appreciated
Thanks so much I have got the solution…
Hi @Aravinthan,
Did the provided solution work for you? I have the same requirement as yours but unable to complete.