473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

EXCEL VLOOKUP and FULL OUTER JOIN

HI,

I need help with excel VLOOKUP! I am at a new job and really trying to solve this without asking anyone at work, since they seem th expect me to know this. What I am trying to acheive is the same thing as a FULL OUTER JOIN if you are familiar with sql. I tried to do this is in access, but access does not support full joins.

Anyhow: I have two email lists, one woth 2500 entries, one with 2600. They are located in same worksheet, one in column A, one in column B. Some emails match, some do not. I want to have the two lists side-by-side in a workheet, with the matching emails next to each other, and also gaps for non-mathcing emails. If I do VLOOKUP I want the missing emails in both columns. I am not at all familiar with VLOOKUP and do not even know where to begin! I appreciate any advise.
May 6 '07 #1
5 17566
MMcCarthy
14,534 Expert Mod 8TB
HI,

I need help with excel VLOOKUP! I am at a new job and really trying to solve this without asking anyone at work, since they seem th expect me to know this. What I am trying to acheive is the same thing as a FULL OUTER JOIN if you are familiar with sql. I tried to do this is in access, but access does not support full joins.

Anyhow: I have two email lists, one woth 2500 entries, one with 2600. They are located in same worksheet, one in column A, one in column B. Some emails match, some do not. I want to have the two lists side-by-side in a workheet, with the matching emails next to each other, and also gaps for non-mathcing emails. If I do VLOOKUP I want the missing emails in both columns. I am not at all familiar with VLOOKUP and do not even know where to begin! I appreciate any advise.
You can use a UNION query to achieve the results you need in Access.
Expand|Select|Wrap|Line Numbers
  1. SELECT Table1.email, Table2.email
  2. FROM Table1 LEFT JOIN Table2
  3. ON Table1.email = Table2.email
  4. UNION
  5. SELECT Table1.email, Table2.email
  6. FROM Table2 LEFT JOIN Table1
  7. ON Table2.email = Table1.email
  8.  
May 7 '07 #2
You can use a UNION query to achieve the results you need in Access.
Expand|Select|Wrap|Line Numbers
  1. SELECT Table1.email, Table2.email
  2. FROM Table1 LEFT JOIN Table2
  3. ON Table1.email = Table2.email
  4. UNION
  5. SELECT Table1.email, Table2.email
  6. FROM Table2 LEFT JOIN Table1
  7. ON Table2.email = Table1.email
  8.  
Hi!

Thanks a million! It worked! That is great!
May 7 '07 #3
It does work, but one thing, I think the second join is supposed to be RIGHT?

Thanks!
May 7 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
It does work, but one thing, I think the second join is supposed to be RIGHT?

Thanks!
You're welcome.

If you make the second join a right join you'll have to reverse the tables.
May 7 '07 #5
Thanks! It gives me what I want!
May 7 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dave | last post by:
Hi I have the following 4 tables and I need to do a fully outerjoin on them. create table A (a number, b number, c char(10), primary key (a,b)) create table B (a number, b number, c ...
0
by: reneecccwest | last post by:
SELECT d.code, d.description, v.code AS divCode, v.descripton AS divDescript, b.code AS brhCode, b.description AS brhDescript FROM Department d FULL OUTER JOIN Division v
7
by: alexcn | last post by:
I have the following query: SELECT dbo.tSymExch.exCode, dbo.tSymGrp.sgCode, dbo.tSymMain.smCode FROM dbo.tSymExch FULL OUTER JOIN dbo.tSymGrp ON dbo.tSymExch.exID =...
2
by: Cory | last post by:
i have two tables, Event1 and Event2. They both have fields called contactID and eventID in them. Some of the contactID's between the tables are equal and some are not. I want to do a full outer...
2
by: HS Hartkamp | last post by:
Hi all, I have a table with analysis-results for various months. An item can -for a particular month- have the result 'list1', 'list2' or 'list3' depending on the result of the analysis. ...
2
by: subba rao | last post by:
What is Full Outer Join?Give me Example?when to use it?
20
by: FloggingDolphin | last post by:
Hi there, I'm kinda new to this so I hope I've explained it properly. Please ask if you need any additional info. Here is a simplified version of the issue I'm experiencing: I have two...
0
by: brunodamato | last post by:
In the example that follows, I am receiving an incorrect result set in the View. I am looking to get the FULL result set from View_LY and Table_TY. Instead, this View is returning the Common (Equi)...
2
by: killer1978 | last post by:
I must confess to being a complete access newbie. I can perform very basic queries on my data. I have two tables, in Excel 2003 with approximately 15-20 columns of data, one with approximately 600...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.