formula to find the first cell with data in it that is also listed in another range.

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi everyone,
I'm very stuck please help if you can

I want a formula or formulas that can give me the first cell value in a range (P2:P150) this list does include blanks so ignore them.
but only if it it also included in range(T2:AA2) aginain which has blanks and this list can be in any order.

so fo example
range(T2:AA2) has "Tony",,"jef ",John","sue",,, "Bill"

range (P2:P150) has
Robin
Wills
ange
Sue
Mark
Tony,

[ want the formula to give me "Sue" as she is the first in range (P2:P150) that is also in range(T2:AA2)
please help if you can
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
How about:

Book1
PQTUVWXYZAAABAC
1Sue
2RobinTonyjefJohnSueBill
3Wills
4
5Ange
6
7Sue
8Mark
9
10Tony
11
Sheet2
Cell Formulas
RangeFormula
AC1AC1=INDEX(P:P,AGGREGATE(15,6,ROW(P2:P150)/(COUNTIF(T2:AA2,P2:P150)>0),1))
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

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