excel - Find maximum of row, return column name -


i have 4 rows , 6 columns of random numbers between 1 , 10. headers atop named a through f accordingly. want populate range (a1:a6) on sheet maximum number each row. easy max function. however, in range (b1:b6), want put column name number belongs.

an hlookup() won't work because maximum value in 1 row not unique number across entire sheet. thinking match index type function, understanding of functions, in conjunction, poor.

a   b   c   d   e   f 1   0   2   10  9   8 9   3   7   6   9   10 10  3   0   2   1   4 9   4   7   8   6   3 

assuming array in sheet1 , columns labelled, please try in sheet, copied down suit (to row4 since there 4 rows of numbers in data):

=index(sheet1!a$1:f$1,match(max(sheet1!a2:f2),sheet1!a2:f2,0))   

this return first column label row maximum row occurs more once.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -