View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
PZach18 PZach18 is offline
external usenet poster
 
Posts: 3
Default Column Header Listing for highest value in a row

I figured it out. THANKS SO MUCH!

"JLatham" wrote:

Put this formula in E2 and fill down:
=OFFSET($A$1,0,MATCH(MAX(A2:D2),A2:D2,0)-1)

The MAX() portion finds the highest value in the row,
The MATCH() that it is wrapped in then uses the MAX value to get a relative
column number (from 1 to 4 in this case), but we need to subtract one from it
so that we can use it as the column offset value in the OFFSET() function.

Be sure to use the $ symbols where I did, and leave them out elsewhere.


"PZach18" wrote:

Thanks for anyone's help in advance . . .


A spreadsheet contains data in columns A-D, for 100 rows.
In row 1, a title for each column exists.
How do I have each row's Column E contain the column title for the cell in
that row that has the highest value?

Thanks!