ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Find max with a lookup (https://www.excelbanter.com/excel-discussion-misc-queries/262499-find-max-lookup.html)

sarahphonics

Find max with a lookup
 
I have a list of data as follows

A B C
1 Belfast 21
2 South 36 =abs(B1-B2)
3 Laganbank 25 =abs(B1-B3)
4 Balmoral 19 =abs(B1-B4)

What I want is to find the max value in column C and return the
corresponding name from column A. So in this case, C2 is highest (15) so the
value returned would be "South".

Note: The numbers in column B are linked to another table and have many
decimal places. they are not just typed whole numbers.

Jacob Skaria

Find max with a lookup
 
Try the INDEX() MATCH() combination

=INDEX(A1:A4,MATCH(MAX(C1:C4),C1:C4,0))

--
Jacob (MVP - Excel)


"sarahphonics" wrote:

I have a list of data as follows

A B C
1 Belfast 21
2 South 36 =abs(B1-B2)
3 Laganbank 25 =abs(B1-B3)
4 Balmoral 19 =abs(B1-B4)

What I want is to find the max value in column C and return the
corresponding name from column A. So in this case, C2 is highest (15) so the
value returned would be "South".

Note: The numbers in column B are linked to another table and have many
decimal places. they are not just typed whole numbers.


sarahphonics

Find max with a lookup
 
worked perfectly. thank you

"Jacob Skaria" wrote:

Try the INDEX() MATCH() combination

=INDEX(A1:A4,MATCH(MAX(C1:C4),C1:C4,0))

--
Jacob (MVP - Excel)


"sarahphonics" wrote:

I have a list of data as follows

A B C
1 Belfast 21
2 South 36 =abs(B1-B2)
3 Laganbank 25 =abs(B1-B3)
4 Balmoral 19 =abs(B1-B4)

What I want is to find the max value in column C and return the
corresponding name from column A. So in this case, C2 is highest (15) so the
value returned would be "South".

Note: The numbers in column B are linked to another table and have many
decimal places. they are not just typed whole numbers.



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

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