Searching down column and displaying value?

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
119
Office Version
  1. 2010
Platform
  1. Windows
[TABLE="class: grid, width: 100, align: center"]
<tbody>[TR]
[TD]Tom[/TD]
[TD]Richard[/TD]
[TD]Harry[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Richard[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Harry[/TD]
[/TR]
</tbody>[/TABLE]


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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
You're welcome & thanks for the feedback
 
Upvote 0
[TABLE="class: grid, width: 100, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]JILL[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]JACK[/TD]
[TD]150[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]JILL[/TD]
[TD]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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?

[TABLE="class: grid, width: 100, align: center"]
<tbody>[TR]
[TD]Tom[/TD]
[TD]Richard[/TD]
[TD]Harry[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Richard[/TD]
[TD][/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Jack[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD][/TD]
[TD][/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Harry[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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