Formula to return to column header for most frequent result

saraapple

Board Regular
Joined
Feb 3, 2020
Messages
165
Office Version
  1. 2010
Platform
  1. Windows
Below is my data and my formulas so far:
Time Changes 2021 NEW.xlsm
ABCDEFGHIJKLMNO
4Permanent WindowMost frequent changeStore NameStore Name0700:09000800:10000900:11001000:12001100:13001200:14001300:15001400:16001500:17001600:1800
50800:100018#VALUE!25BECKTON6181211
TIME CHANGES BY STORE
Cell Formulas
RangeFormula
A5A5=VLOOKUP(D5,'Permanent Windows'!A:E,5,FALSE)
B5B5=MAX(F5:O5)
C5C5=IF(B5=F5:O5,(MATCH(B5,O4,0)))


As you can see I am struggling with the formula for C5, I want it to return cell I4 as this is the column that my max range is found 18 - basically which ever column with the most time changes I want to bring back for the, for example data I want it to return "10:00 12:00" as this is the time most frequently used.

Any help greatly appreciated as always.
Thank you for your time
Sara
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi,

try this:

Book1
ABCDEFGHIJKLMNO
4Permanent WindowMost frequent changeStore NameStore Name0700:09000800:10000900:11001000:12001100:13001200:14001300:15001400:16001500:17001600:1800
5181000:120025BECKTON6181211
Sheet4
Cell Formulas
RangeFormula
B5B5=MAX(F5:O5)
C5C5=INDEX(F4:O4,MATCH(B5,F5:O5,0))
 
Upvote 0
Perfect thank you. I was heading in that direction, it just would have taken me a very long time to get there!
Sara :)
 
Upvote 0
glad I could speed up the process. Remember to mark it as solution if this is done
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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