I have the following dummy table.
Value of Header1 will be in cell A18. Value of Header2 will be in cell A19 and value Header3 will be in cell A20.
I have about 20 headers and I want the highest number in the range based on what is in the relevant cell. The order of the headers may change, so for one month it may not have all 20 options.
Desired result
Value of Header1 will be in cell A18. Value of Header2 will be in cell A19 and value Header3 will be in cell A20.
I have about 20 headers and I want the highest number in the range based on what is in the relevant cell. The order of the headers may change, so for one month it may not have all 20 options.
Desired result
Header1 | 13 |
Header2 | 7 |
Header3 | 19 |
Row Labels | Header1 | Header2 | Header3 | Header4 | Header5 | Header6 | Header7 | Header8 | Grand Total |
11/04/2023 | 13 | 18 | 6 | 7 | 1 | 45 | |||
12/04/2023 | 7 | 2 | 14 | 5 | 3 | 2 | 33 | ||
13/04/2023 | 7 | 3 | 9 | 4 | 5 | 1 | 29 | ||
14/04/2023 | 2 | 5 | 2 | 8 | 17 | ||||
17/04/2023 | 7 | 1 | 17 | 4 | 6 | 3 | 38 | ||
18/04/2023 | 13 | 1 | 14 | 2 | 3 | 1 | 34 | ||
19/04/2023 | 4 | 1 | 16 | 8 | 3 | 32 | |||
20/04/2023 | 6 | 2 | 7 | 3 | 1 | 19 | |||
21/04/2023 | 10 | 1 | 10 | 3 | 4 | 28 | |||
24/04/2023 | 5 | 3 | 9 | 8 | 5 | 1 | 31 | ||
26/04/2023 | 4 | 15 | 2 | 7 | 1 | 2 | 31 | ||
27/04/2023 | 5 | 7 | 1 | 2 | 1 | 1 | 17 | ||
28/04/2023 | 7 | 11 | 1 | 6 | 1 | 26 | |||
1/05/2023 | 11 | 1 | 17 | 2 | 8 | 39 | |||
2/05/2023 | 9 | 15 | 1 | 5 | 30 | ||||
3/05/2023 | 5 | 14 | 2 | 3 | 24 | ||||
4/05/2023 | 7 | 1 | 12 | 7 | 3 | 1 | 31 | ||
5/05/2023 | 13 | 12 | 1 | 2 | 28 | ||||
8/05/2023 | 6 | 6 | 8 | 5 | 1 | 1 | 27 | ||
9/05/2023 | 4 | 14 | 1 | 3 | 22 | ||||
10/05/2023 | 12 | 1 | 4 | 3 | 8 | 28 | |||
11/05/2023 | 5 | 1 | 9 | 2 | 17 | ||||
12/05/2023 | 4 | 9 | 2 | 5 | 20 | ||||
15/05/2023 | 6 | 19 | 3 | 8 | 1 | 2 | 39 | ||
16/05/2023 | 6 | 12 | 2 | 2 | 1 | 1 | 24 | ||
17/05/2023 | 8 | 1 | 14 | 2 | 1 | 26 | |||
18/05/2023 | 12 | 15 | 4 | 12 | 43 | ||||
19/05/2023 | 11 | 7 | 8 | 12 | 5 | 43 |