Hi, I have an activity to fill the value in the next column daily as seen on the red box below :
So my robot will generate data daily. Currently the headers are made, but the problem is right now how to fill the data to the right side? Because currently my data is appending to bottom (rows) or it’s overwriting. How to write it in columns?
Read the Excel file after the update Current date
In writing cell activity you need a Column index name.
GPS Column= UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter(DTReadFullRange.Columns.Count-2)
Strange Column= UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter(DTReadFullRange.Columns.Count-1)
Last Location= UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter(DTReadFullRange.Columns.Count)
For above 30 July You can get K, L, M
Row index You have to give from 3 and increment it
This is expression to see if there’s value on it right? Can it be done on the last Column instead? (Last Location) so it doesn’t have to check the GPS and Strange column?
It didn’t answer my main question, so let me give you explanation in picture :
If You copy from Jason converted Excel to daily data excel without ay changes follow this
Read data of converted Excel.
Read Daily data excel after entering the current data.
Use Write range and enter Cell value- UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter(DTReadFullRange.Columns.Count-2)+“3”
HI not sure if this would be of much help but noticed that the excel columns are always named like
A,B…Z followed by AA, AB …AZ, BA…BZ. Your data moves three columns everyday to the right .So maybe if you know the last column updated ,for next day you can can write cell by 3 columns.
07/29/22 last column is say AB
07/30/22 AC AD AE will be written.
07/31/22 AF AG AH will be written.
Sorry if i may have totally missed the mark
It work thanks ! And just now I tested and I found it copy/paste the previous range. So I do need to make template for it right? Can it be checked first with if condition?
for example :
if condition is true then just copy paste
else write…