Finding a value

J

jkrons

I have this formula:

=OFFSET(INDIRECT(ADDRESS(MATCH(MAX(B1:B26),B1:B26,0),2)),0,-1)

It looks up the value one cell left of the largest value in B1:B26,
and it works OK, but

1) Can it be done in an easier way?
2) It only works if the column starts in row 1. as Match find the row
within the array and Address demands the row in the sheet.

Jan
 
M

Mike H

Hi,

here's another way with an ARRAY formula

=INDEX(A2:A20,MATCH(MAX(B2:B20),B2:B20,0))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
B

Bernard Liengme

I hate to be pedantic, Mike, but the formulas we each suggested do NOT need
to be array entered.
Bernard
 
J

Jan Kronsell

Great. Thank you both.

Jan

Bernard said:
I hate to be pedantic, Mike, but the formulas we each suggested do
NOT need to be array entered.
Bernard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top