Searching down column and displaying value?

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
119
Office Version
  1. 2010
Platform
  1. Windows
TomRichardHarry
Tom
Richard
Harry

<tbody>
</tbody>


What formula do I put in the top row - which searches down that column for a non-empty cell, and displays the result?

I'm having no luck with the LOOKUP commands...

Thanks for the help!
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
How about
=VLOOKUP("*",A2:A11,1,0)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
JILL
JACK150
JILL100

<tbody>
</tbody>
No problem bro, you guys rock!

Can your formula be amended so that if the column has two non-empty cells - it looks at the next column and displays the name with the lowest number?

Thanks again!
 
Upvote 0
How about


Excel 2013/2016
ABC
1Jill
2
3
4Jack200
5
6
7Jill100
Data
Cell Formulas
RangeFormula
B1=INDEX(B2:B10,MATCH(MIN(C2:C10),C2:C10,0))
 
Last edited:
Upvote 0
4 minutes to reply - dang dude, are you Superman!

Works great, is there a way to add additional columns like this?

TomRichardHarry
Richard300
Jack200
Tom50
Harry100

<tbody>
</tbody>

When the column shows more than the two corresponding numbers, like above - is there a way for it to only compare the two numbers which relate to the name?
So it checks only:
Jack = 200
Harry = 100
Then displays Harry with the lowest number of the two?

Thanks!
 
Upvote 0
How about


Excel 2013/2016
ABCD
1TomRichardHarry
2
3Richard300
4Jack200
5Tom50
6Harry100
Data
Cell Formulas
RangeFormula
A1{=INDEX(A2:A10,MATCH(MIN(IF((A2:A10<>""),$D$2:$D$10)),$D$2:$D$10,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.


But this will fail if you have two numbers the same.
 
Upvote 0
If there are two numbers the same - instead of the formula failing, could it display some text like SAME?

Thanks again!
 
Upvote 0
Maybe
=IF(INDEX(A2:A10,MATCH(MIN(IF((A2:A10<>""),$D$2:$D$10)),$D$2:$D$10,0))=0,"Same",INDEX(A2:A10,MATCH(MIN(IF((A2:A10<>""),$D$2:$D$10)),$D$2:$D$10,0)))
confirmed with CSE
 
Upvote 0

Forum statistics

Threads
1,213,486
Messages
6,113,932
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top