September 9, 2020
Hi, there,
I have, in power query, the list of all the days in the year 2024.
I would like to indicate, in an additional column and for each week, Friday and if Friday is a public holiday then Thursday (or Wednesday if Thursday is a public holiday).
Can you give me an idea?
BR,
Lionel
Moderators
January 31, 2022
To keep it fairly simple I would perform a few consecutive merges, comparing first all Fridays against the holidays. Then keep the date or deduct one day in a new date column (Custom). This will than contain all Fridays and some Thursdays. Repeat the merge, again comparing this Custom date column with holidays. Keep those dates or again deduct one days if it is a holiday, creating a new date column Custom.1. Remove all other columns.
You now end up with a list of dates, mostly Fridays, an occasional Thursday and one Wednesday, not being holidays.
Is that what you had in mind?
See attached.
September 9, 2020
Hi Riny,
It's actually an identical process that I wanted to put in place but I can't manage it. I feel like I'm doing something complicated when there could perhaps be a simple solution.
NB: I realise that I've put in an xlsb file which is probably unreadable. Here's the xlsx version.
Lionel
Moderators
January 31, 2022
Moderators
January 31, 2022
'Good solution' is a big word. Since you would only do this once a year it would almost be quicker to have a list of all Friday's, mark all holidays on it and then correct the list of Fridays manually.
Almost can't believe I'm suggesting this but sometimes it simpler to do things without too much automation 🙂
September 9, 2020
In fact, this treatment is just the tip of the iceberg. So it's not possible to carry out the treatment manually. So I'm trying to replace Excel formulas with power queries.
I'm sure we can come up with something better. This is the beginning of the road to a solution.
Lionel
1 Guest(s)