I have an excel file with multiple columns, been stuck for a few days trying to gather data from the current date to the end of the week using DateTime.Today < DateTime.Today.AddDays(6) but my use of activities may be flawed as I suck at logic.
The data gathered from the columns must also be aligned with the row name as I am trying to filter out from filtered excel files.
I started with an excel app scope, set ‘devices’ for the read range variable and ‘week’ for another read range variable.
Made another excel app scope, a place for the data to be written in.
Write Range A1 for ‘devices’ followed by an if condition for DateTime.Today < DateTime.Today.AddDays(6).
I left a filter datatable activity in the Then part of the if activity and left the Else blank.
and my bot ends with a write range from the output of the filter datatable.
I’m on Studio Pro and writing with C# any help would be appreciated!
Thanks for your response.
I have actually been using that statement however I am not sure how I should go about the activities, could you go through it with me?
I have decided to filter using assign with
weekdata.Select(“DATE1 <= '#” + today+ “#’ AND DATE2 >= '#” + week+ “#'”) in C#
could you tell me how to resolve my problem? I’m not sure if DATE1 and DATE2 are right been trying out various fixes from other forums thks…