Basically would there be a way for me to look up the month on my excel and write the distance, as I will be assuming that there would be other months as well. (For example if I had one result that said December 2022, it would input it into the December column in excel.)
The above is just a test workflow. It makes use of the âLookUp Rangeâ Activity inorder to find the cell name based on the header.
Here we extract the month from the input and then use string operations to create the header, in this case it would be Aprâ23
Then we use the LookUp range activity to find the cell number and after we do so we can add the value(eg:14.00) into that cell. I have assigned an index to indicate the cell number but if you use a for each loop you can increment this index
Yes, this is what I want to take place. However, the date I extracted is actually in a variable called month (as shown below) and the 14 is actually another variable as well, because I am trying to loop this process.
I tried to replace input date you have with the month variable I have
but I get the error of Cannot assign from type âSystem.Objectâ to type âSystem.Stringâ in Assign activity âAssignâ.
Thank you for your reply Brian, however I now get a new error that reads Assign: Expression Activity type âVisualBasicValue`1â requires compilation in order to run. Please ensure that the workflow has been compiled.
Glad I could help. The purpose of the index was to ensure that while writing into the cell in the Excel, it writes from A2,B2,C2âŚand so on. This index will be incremented in order to write it to the next cells i.e. A3,B3,C3 and so on