Solved

Vlookup three columns

Posted on 2012-03-15
6
212 Views
Last Modified: 2012-03-15
Hi,

I have one excel tab with a load of data in column F

I want to check if there is corresponding values in three other tabs.

The corresponding values are always in Column A

How can i check this as a Vlookup will only return from one tab

Thanks
Seamus
0
Comment
Question by:Seamus2626
  • 3
  • 3
6 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 37725389
Do you want to check if there is data in one of the three, or all three? You'll basically need three separate vlookups, either nested or concatenated depending on the answer to my question.
0
 

Author Comment

by:Seamus2626
ID: 37725404
They could be a corresponding value in tab one, two, or in all three or no match at all

I need to return text "Match" if there is a corresponding value in tab one, two, or all three    
&

Text "Non Match" if there is no corresponding value in any of the tabs

Hope that makes sense!
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 37725428
In that case:

=if(count(match(a1,sheet1!a:a,0),match(a1,sheet2!a:a,0),match(a1,sheet3!a:a,0))>0,"match","no match")
for example
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:Seamus2626
ID: 37725494
Hey Rory, i have zipped the file which i am working on and have tried to implement your formula as you will see in Tab ASPA

Can you see why that cant see what is a match as a match?

e.g B2 should be a match

Thanks
Seamus
ASPAMatch.zip
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 37725525
I'm not sure how you entered those formulas as there should be quotes round the sheet names (as they contain spaces)

=IF(COUNT(MATCH(F2,'Sophis Paris'!A:A,0),MATCH(F2,'Sophis US'!A:A,0),MATCH(F2,'Sophis HK'!A:A,0))>0,"match","no match")

for example.
0
 

Author Closing Comment

by:Seamus2626
ID: 37725553
I used the editor, maybe i changed it somehow, anyhow, it works!

Thanks
Seamus
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question