Finding Data in a cell by looking for 3 variables

Guzzlr

Well-known Member
Joined
Apr 20, 2009
Messages
943
Office Version
  1. 2016
Platform
  1. Windows
Hello all.
I have a little issue, that I would normally use VBA, but this time I would like to go formula driven.
Data Locations:
  • Date is in L:8
  • First Variable is in: L:7 = Finish
  • Second Variable is in: J:8 = POP
  • Third Variable is in: H:8 = ABC

I wish to lookup the date in L:8, in an entire sheet, using the 3 variables of "Finish", "POP", and "ABC"
So, the 3 Lookup values are ABC, POP, and Finish, to pull the date in L:8

I wanted to use maybe Vlookup, or IndexMatch, but I dont know how to use it with three different LookUp values. Or maybe a combination with the Find formula?

All the data I need, is in columns H:L.
Thanks for the help
 
Last edited:
Do you only ever want to get the date for ABC & POP?

Yes, I want to find the finish date by finding ABC and POP. ABC and POP should always be on the same row as the date, under the Header of Finish
Thanks for the help
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
In that case try
=INDEX(Y21:Y100,MATCH("ABC|POP",F21:F100&"|"&S21:S2500,0))
 
Upvote 0
In that case try
=INDEX(Y21:Y100,MATCH("ABC|POP",F21:F100&"|"&S21:S2500,0))

Code:
=INDEX(Sheet2!Y21:Y100,MATCH(Sheet2!"ABC|POP",Sheet2!F21:F100&"|"&Sheet2!S21:S100,0))

Your formula is working, as long as I keep it on the same sheet.
My formula is not working when I use the formula on Sheet 1, searching for the Finished Date on Sheet 2.
What am I doing wrong?
Thank you
 
Upvote 0
You need to remove the part in red
=INDEX(Sheet2!Y21:Y100,MATCH(Sheet2!"ABC|POP",Sheet2!F21:F100&"|"&Sheet2!S21:S100,0))
 
Upvote 0
You need to remove the part in red
=INDEX(Sheet2!Y21:Y100,MATCH(Sheet2!"ABC|POP",Sheet2!F21:F100&"|"&Sheet2!S21:S100,0))

Holy Cow...It Works!
Thank you very much
Question: What does the "|" tell excel to do?
Thanks
 
Upvote 0
It's simply there to keep the data separate. Otherwise these would all be treated as the same.
AB CPOP
ABC POP
ABCP OP
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,953
Members
448,535
Latest member
alrossman

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