excel - How to fill a column with the header of the maximum value in a range of columns for every row -


i have csv file this

screen name,sports,music,movies,politics,vehicles,media,word count henrywinter,0.12,0.005714286,0,0.005714286,0,0.017142857,175 bumblecricket,0.081818182,0.009090909,0,0,0,0.009090909,110 samwallacetel,0.196172249,0.009569378,0,0.004784689,0,0.019138756,209 marcotti,0.06779661,0,0,0,0,0.02259887,177 

now, how fill column in each row header of maximum value in range of columns every row??

i'm assuming don't want include word count because it's bigger others.

if read csv a1:h5 , put formula in (say) j2 , pull down, should find column header matching maximum value in each row:-

=index($b$1:$g$1,match(max($b2:$g2),$b2:$g2,0)) 

the result in example sports.

enter image description here

(have changed b2 0 show media selected).


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -