Link to home
Start Free TrialLog in
Avatar of csehz
csehzFlag for Hungary

asked on

Excel 2010 - Select category per Max values

Dear Experts,

Can you please have a short look on the attached file, basically on 'Sheet1' there is a small table with Products, which contains selling numbers per Countries (from column A to E):
User generated image
Could you advise which Excel formula could provide result as color marked in column F? The logic of it is selecting that country from the header, which has the Max of selling at the certain product.

Thanks in advance,
CountValues-Select.xlsx
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Try this ARRAY formula

=INDEX($B$1:$E$1,MAX(SIGN(B2:E2)*COLUMN(B2:E2))-1)
Do you know how to enter array formulas?
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of csehz

ASKER

Thank you for the advices, you are great