Solved

# Excel 2010 - Select category per Max values v.2

Posted on 2016-10-06
Medium Priority
83 Views
Dear Experts,

Yesterday on EE I got two solutions to select the countries which have the highest selling numbers in a row on below printscreen:

Concretely the applied formulas are =OFFSET(\$A\$1, 0, MATCH( MAX(B2:E2),B2:E2)) and =INDEX(\$B\$1:\$E\$1,MATCH(MAX(B2:E2),B2:E2)), basically both are working except the red marked scenario (where Sweden has 4 as selling and both formulas select Norway incorrectly)

Could you please advise which formula would give correct value for all the scenarios?

CountValues-Select_v2.xlsx
0
Question by:csehz
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 53

Accepted Solution

Ryan Chong earned 2000 total points
ID: 41831297
oooops, try use this formula instead:

=OFFSET(\$A\$1, 0, MATCH( MAX(B2:E2),B2:E2, 0))

or

=INDEX(\$B\$1:\$E\$1,MATCH(MAX(B2:E2),B2:E2, 0))
CountValues-Select_v2_b.xlsx
0

LVL 1

Author Closing Comment

ID: 41831318
Thanks that is perfect :)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.