In an Excel sheet can I MATCH a cell using more than one lookup value ?

Hi All,

Is it possible to perform a MATCH using more than one lookup value/range ?

For example:

=MATCH(A1,F:F,0) will return the row number if a match is found in column F of the value in A1

What if I want to find the row number when more than one match/column condition exists ?

For example:

=MATCH(A1,F:F,0) and MATCH(B1,G:G,0) must both be TRUE before the row number is returned

Thanks in anticipation
Toco
TocogroupAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
0
SteveCommented:
This should work:
=MATCH(A1,IF(G:G=B1,F:F),0)

Also An array formula should do it:
=MATCH(A1&"|"&B1,F:F&"|"&G:G,0)
enter with [ctrl]+[shift]+[enter]

I would specify the range of rows though as with the big excel sheet it may get slow:
=MATCH(A1&"|"&B1,F1:F9999&"|"&G1:G9999,0)
enter with [ctrl]+[shift]+[enter]

*note: I use a pipe in my concatenation as it is not good practice to exclude a delimiter
10:1 is the same as 1:01 if you do not use a delimiter.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TocogroupAuthor Commented:
Hi,
Thanks for that. It worked perfectly.
Much appreciated
Toco
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.