I have a situation where a data source (xlsx) file has a changing sheet name.
The excel file has multiple sheets like Region,Location,ABC 1.1,ABC 2.2, ABC 2.1
I have a requirement where I need to get a single sheet based on a condition.
The condition are
1. It should contain 'ABC'
2. Now there are three sheets with name ABC. It should pick only ABC 2.2 because 2.2 is greater than 2.1 and 1.1.
So next week if the data gets refreshed and if I find a sheet ABC 3.1, it should pick that sheet and load the data in that sheet.
How to write a M code for this condition. Can someone please help?
The excel file has multiple sheets like Region,Location,ABC 1.1,ABC 2.2, ABC 2.1
I have a requirement where I need to get a single sheet based on a condition.
The condition are
1. It should contain 'ABC'
2. Now there are three sheets with name ABC. It should pick only ABC 2.2 because 2.2 is greater than 2.1 and 1.1.
So next week if the data gets refreshed and if I find a sheet ABC 3.1, it should pick that sheet and load the data in that sheet.
How to write a M code for this condition. Can someone please help?