Excel- Identify column headers if duplicate max values in a row

lixx

New Member
Joined
Feb 27, 2022
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Im trying to find a way to identify the column header of the maximum value on a row. In my case the column headers are values such as 1 , 2, 3, 4 and 5 which i would be using in another statistic. I actually want to get the column header value which has the max value in a row. Im working INDEX ,MATCH, MAX to identify the column header but since there is duplicate max value its returning to the first instance (column header 1). however i want to get both column headers which has the max value.
for example
543216
40.0%10.0% 40.0%0.0%10.0%0.0%
here i want to get the header value for the max % . in this case 40% is duplicated and which i apply INDEX ,MATCH, MAX it is giving me 5 which is not what i want... so how can i get the average of the two column header values which has 40.0%.
Please help me.. is there any solution for it
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Welcome to the MrExcel board!

how can i get the average of the two column header values which has 40.0%.
Like this?

22 02 28.xlsm
ABCDEF
1543216
240.00%10.00%40.00%0.00%10.00%0.00%
3
4Average4
Averageifs
Cell Formulas
RangeFormula
B4B4=AVERAGEIFS(A1:F1,A2:F2,MAX(A2:F2))
 
Upvote 0
Welcome to the MrExcel board!


Like this?

22 02 28.xlsm
ABCDEF
1543216
240.00%10.00%40.00%0.00%10.00%0.00%
3
4Average4
Averageifs
Cell Formulas
RangeFormula
B4B4=AVERAGEIFS(A1:F1,A2:F2,MAX(A2:F2))
Thank you so much.. it works and that is exactly what i want. you have saved my day
 
Upvote 0
22 09 12.xlsm
ABCDEF
1543216
240%10%40%0%10%0%
3
4Result5,3
Equal max
Cell Formulas
RangeFormula
B4B4=TEXTJOIN(",",,FILTER(A1:F1,A2:F2=MAX(A2:F2)))
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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