I have excel it have much of data what my problem is read, only today data and store that data in output by using filter data table, please help me thanks
Can you please provide a screenshot of the excel? as if there is a column containing the date you can use an IF statement
Use Read range activity → Store it in DT
Use Filter Data Table
- Use Write Range activity
i tried this but it not writing the data in the excel
How about this expression?
ExtractDataTable = DtInput.AsEnumerable.Where(Function(r) r("Column Name").ToString.Contains(DateTime.Now.ToString("dd-MM-yyyy"))).CopyToDataTable
Where i have to write this
You Assing activity and
LHS → DtOutput → Variable type is Datatable
RHS → DtInput.AsEnumerable.Where(Function(r) r(“Column Name”).ToString.Contains(DateTime.Now.ToString(“dd-MM-yyyy”))).CopyToDataTable
i tried this is also not working, i forgot to mention one thing, that is i am using C# sorry for this. Thanks…
Hi @Aregala_Yedukondalu ,
Try the below expression & let me know if it helps.
You can reref the below post for more details on the same.
Thank you for ur help but its not working
Hello @Aregala_Yedukondalu - If possible share a sample input excel
values visual in Excel are not mandatory in the same format within the datatable
In the following FirstAid sheet some analysis techniques are described:
[FirstAid] Datatable: Debug & Analysis invalid DateTime Strings / String to DateTime Parsing Issues - News / Tutorials - UiPath Community Forum
Just run it and let us know the result / some outputs from the immediate panel.
Once the format / values within the datatable are cleared we can work further on the filter part
keep in mind that this data will not have todays (11th Aug 2022) dates. So filter result is empty
sorry @ppr that is old excel, i will post another excel please look into that
no problem with the old excel. Just do the analysis as described in the FirstAid and let us know the results
I tried first those all but i am facing issues, and i am using c#
no problem as you can just use YourDataTableVar within the immediate panel and get insights to the content.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.