ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   MIN/MAX and Lookup (https://www.excelbanter.com/excel-worksheet-functions/241255-min-max-lookup.html)

Stacy C[_2_]

MIN/MAX and Lookup
 
Good afternoon,

This is a bit complicated, I think, but in short, I would like to be able to
pick out the highest and lowest values from a column, and populate them in
another field. Example:

Column A Column B
1| Car 15
2| Apple 12
3| Dog 4

So A & B1 would be the highest (Car 15)
And A & B3 would be the lowest (Dog 4)

How could I get a formula that would look at the highest value in B, match
it up with the corresponding value in A, and then show both?

Thank you,
Stacy


T. Valko

MIN/MAX and Lookup
 
Try this:

D1: =MAX(B1:B3)
D2: =MIN(B1:B3)

E1 and copied down to E2:

=INDEX(A$1:A3,MATCH(D1,B$1:B$3,0))

--
Biff
Microsoft Excel MVP


"Stacy C" wrote in message
...
Good afternoon,

This is a bit complicated, I think, but in short, I would like to be able
to
pick out the highest and lowest values from a column, and populate them in
another field. Example:

Column A Column B
1| Car 15
2| Apple 12
3| Dog 4

So A & B1 would be the highest (Car 15)
And A & B3 would be the lowest (Dog 4)

How could I get a formula that would look at the highest value in B, match
it up with the corresponding value in A, and then show both?

Thank you,
Stacy




Sean Timmons

MIN/MAX and Lookup
 
=INDEX(A1:A3,MATCH(MAX(B:B),B:B,0),1)&" "&MAX(B:B)

=INDEX(A1:A3,MATCH(MIN(B:B),B:B,0),1)&" "&MIN(B:B)

"Stacy C" wrote:

Good afternoon,

This is a bit complicated, I think, but in short, I would like to be able to
pick out the highest and lowest values from a column, and populate them in
another field. Example:

Column A Column B
1| Car 15
2| Apple 12
3| Dog 4

So A & B1 would be the highest (Car 15)
And A & B3 would be the lowest (Dog 4)

How could I get a formula that would look at the highest value in B, match
it up with the corresponding value in A, and then show both?

Thank you,
Stacy



All times are GMT +1. The time now is 06:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com