• Status: Solved
• Priority: Medium
• Security: Public
• Views: 308

# Excel: INDEX question - Find MAX number in Column in an Aray and return the Row value

Hi

I have an off day and am not getting the right formulas in my head.

I have an array with 5 columns and multiple rows to give me a max factor to determine the optimum height at a given width. The user should be able to input the width, the formula needs to identify the column for this width and then return the MAX Value in that column and the value of the row (height) in which that MAX Value is matched.

So if the width is 20, which is the best Height based on the MAX value in the array for that width?

The excel sample file is attached.  Can you give ma an idea on the formula?

Thanks
T
Test-Array.xlsx
0
captain
1 Solution

Director, Practice Manager and Computing ConsultantCommented:
If I get you correctly, in C17 you would enter 10, and get the answers 89 (the maximum for column C) and 5 (its correlating value in column B)

The Recommended Height is

=MAX(OFFSET(B4,0,MATCH(C17,C3:G3,0),9,1))

and Max Factor is

=OFFSET(B3,MATCH(MAX(OFFSET(B4,0,MATCH(C17,C3:G3,0),9,1)),OFFSET(B4,0,MATCH(C17,C3:G3,0),9,1),0),0)
0

Author Commented:
Fast and awesome!

Thanks :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.