O
Old Red One
How does one locate the cell in which the MAX number appears?
Earl Kiosterud said:Red,
Let A2:A11 be the Item Number column in an inventory table, and B2:B11 be
the Quantity column. The columns are different than the examples in my
earlier post. We want to find the item number of the item we have the
most of.
Let's say =MATCH(MAX(B2:B11),B2:B11,0) returned 6, meaning the sixth entry
in B2:B11 was the largest. Now you want to go into the Item Number
(A2:A11) column to retrieve the corresponding item number.
Embedding that in an INDEX function:
=INDEX(A2:A11,MATCH(MAX(B2:B11),B2:B11,0)) will return the corresponding
Item Number from column A. This is the Item number of the item we have
the most of. Note that there could be multiple items with this quantity,
and this would find only the first.
Note that you can, in edit mode, select an expression, like
MATCH(MAX(B2:B11),B2:B11,0), then press F9, and it will evaluate the
expression, replacing it with the result. So you'd see:
INDEX(A2:A11,6)
Be sure not to press Enter, or you'll have permanently have changed the
formula.. Press Esc to get out of edit mode.
Old Red One said:Thanks again. I will work on this. It seems this will be very worthwhile
knowledge, once familiar with it. I'll have to become aware of 'edit
mode.' More later - probably. Red.