I have a data table in Excel as follows:
| Country | City | Jan 1, 2020 | Jan 2, 2020 | Jan 3, 2020 | .... | Jan 8, 2020 | Jan 9, 2020 | .... |
----------------------------------------------------------------------------------------------------------
| USA | New York | 88647 | 83247 | 92621 | ... | 32874 | 31940 | .... |
| USA | Boston | 31647 | 73242 | 42620 | ... | 22870 | 11944 | .... |
| USA | Miami | 58641 | 23241 | 92627 | ... | 22872 | 61943 | .... |
| England | London | 88621 | 23324 | 32620 | ... | 12874 | 21940 | .... |
| England | Bristol | 73612 | 13320 | 62626 | ... | 32876 | 81903 | .... |
The columns go on till December 31, 2020... so it's entire year's data.
I want to see the country wise numbers for all Mondays, Tuesdays, ... Sundays in the whole year summed up together. For this, I extracted the WEEKDAY from the date columns, but that would give me column names with repeated names as the day name gets repeated for every 7 days. Below is what the table looks like once I extract the weekday for the given date.
| Country | City | Wednesday | Thursday | Friday | .... | Wednesday | Thursday | .... |
--------------------------------------------------------------------------------------------
| USA | New York | 88647 | 83247 | 92621 | ... | 32874 | 31940 | .... |
| USA | Boston | 31647 | 73242 | 42620 | ... | 22870 | 11944 | .... |
| USA | Miami | 58641 | 23241 | 92627 | ... | 22872 | 61943 | .... |
| England | London | 88621 | 23324 | 32620 | ... | 12874 | 21940 | .... |
| England | Bristol | 73612 | 13320 | 62626 | ... | 32876 | 81903 | .... |
Pivoting this is a dead end because of the repeated column names. Second instance of Wednesday column would be read as Wednesday2 in the pivot, third instance as Wednesday3 and so on. Is there any way to make the pivot table consider all the instances of Wednesday as one single Wednesday and so on?
Below is what my final output should look like:
| Country | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
-------------------------------------------------------------------------
| USA | | | | | | |
| England | | | | | | |