Return Column header for MAX/MIN Value

kitm

New Member
Joined
Oct 31, 2023
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
I have a spreadsheet that has the counts the number of instances on a daily basis.
Under the table I have a breakout that finds the MAX and MIN number of instances. I would like to add a second cell next to that that returns the column header (Date) for the max or min value that is found.
Im struggling with the formula to get the array right or return the column header instead of the column number.

Table:
Zero Hero Tracking 2024.xlsx
DGHIJKAG
1BR6/16/36/46/56/6TOTAL
239181064634
34366530317
4912001113
59222232312
6931125008
793373431633
893412145830
92524361537137
1148231834836
129054322112
1391016654233
149132332212
15935111561033
169366448426
173245222627152
184943211411
19906201317
20909021216
219114253216
22914351333357
239291729625
241318232147122
2549198310434
2690710572630
279084443621
28927481614648
2992815746840
304232343530173
314892468323
324903125213
339173363217
349193230412
35930412108
36151119171173
374812653420
38916113229
399203322313
409245232517
419320312410
42111514111869
43138145148125170726
June 2024


Breakout:

Zero Hero Tracking 2024.xlsx
FGH
50Best Day1706/6/2024
51Worst Day1256/5/2024
June 2024


Column G is the min and max of the total row (red) in the main table. Column H is the date on which the min/max value occurs. Right now I am having to manually find what day the max/min is and enter it. I would really like it to be a formula because the table will expand to include every day of the month. And I just can't seem to find the right index formula to make it work.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try:
Book1
FGH
50Best Day1706/6/24
51Worst Day1256/5/24
Sheet8
Cell Formulas
RangeFormula
G50G50=MAX(G43:AF43)
H50:H51H50=INDEX($G$1:$K$1,1,MATCH(G50,$G$43:$K$43,0))
G51G51=MIN(G43:AF43)
 
Upvote 1
Solution
try:
Book1
ABCDEFGH
48
49
50Best Day1702024-06-06
51Worst Day1252024-06-05
52
Sheet1
Cell Formulas
RangeFormula
G50G50=MAX(G43:AF43)
H50:H51H50=INDEX($G$1:$K$1,MATCH($G50,$G$43:$K$43,0))
G51G51=MIN(G43:AF43)
 
Upvote 1

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top