There will be multiple sheets under the same format and I want to go through each sheet and remove the columns that have a different status than Ready. So, at the end I want to have only columns with ready status left.
Final result should look like this (only Ready columns):
Any thoughts on how this can be done is?
Not to much experience working with this kind of helping stuff so any help would appreciated.
@ppr Thanks for you detailed response.
Unfortunately not very familiar with LINQ.
I’ve tried to replace that Build Data Table with a Read Range from the table i need to work with but I get this error:
Not sure what should be done in this case.
@Mario9016
This exception was implemented for the case that no or more then one columns are detected having the ready status. Before Bot runs with wrong information it will be killed for quality reasons.
So its not abut LINQ its about the data and it should be handled as well also in other implementation approaches.
Just share your excel with us in case of you cannot sort it out by your own.
Couldn’t find a way to get through there.Demo_Status.xlsx (16.6 KB)
I have attached a short version of the table, with 2 sheets and 2-3 columns. There can be columns with the same header, but as mentioned above, I’m interested to keep just the ones with Ready status.
@Mario9016
I had a look on your Excel. In one sheet more than 1 columns had th ready status. Thats why the implementation was breaking. Sure implementation can be adopted, but for this we do need your requirements.What is your requirement?
@ppr
I have 1 table with multiple sheets (10-12 aprox.) and on each sheet there can be Ready status columns. Or there can be sheets just with Done or On Hold. I need to go through each sheet and keep there only the columns with Ready status.
Cheers
@Mario9016
Find updated version, now handling multiple ready columns.
Kindly note:
Your demo table had a duplicated column name. Thats why I turned off add Header option. If this will not happen in your data then feel free to tick it on again