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.
5 17591 MMcCarthy 14,534
Recognized Expert Moderator MVP
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. -
SELECT Table1.email, Table2.email
-
FROM Table1 LEFT JOIN Table2
-
ON Table1.email = Table2.email
-
UNION
-
SELECT Table1.email, Table2.email
-
FROM Table2 LEFT JOIN Table1
-
ON Table2.email = Table1.email
-
You can use a UNION query to achieve the results you need in Access. -
SELECT Table1.email, Table2.email
-
FROM Table1 LEFT JOIN Table2
-
ON Table1.email = Table2.email
-
UNION
-
SELECT Table1.email, Table2.email
-
FROM Table2 LEFT JOIN Table1
-
ON Table2.email = Table1.email
-
Hi!
Thanks a million! It worked! That is great!
It does work, but one thing, I think the second join is supposed to be RIGHT?
Thanks!
MMcCarthy 14,534
Recognized Expert Moderator MVP
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.
Thanks! It gives me what I want!
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 char(10), primary key (a,b))
create table C (a number, b number, c char(10), priamry key (a,b))
create table D (a number, b number, c char(10),...
|
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
|
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 =
dbo.tSymGrp.sgexID FULL OUTER JOIN
dbo.tSymMain ON dbo.tSymGrp.sgID =
dbo.tSymMain.smsgID
Which produces:
|
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 join on contactID so i can get all the
contactID's in the query.
i know access doesn't support full outer joins so there must be a way to
do it...
|
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.
Next, I want to get an insight in how the various items change over time.
For that, I compare the results of one month with the results of another...
| |
by: subba rao |
last post by:
What is Full Outer Join?Give me Example?when to use it?
|
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 financial tables. One table ("ACTUAL") contains a list of employees and their actual spending amounts for various periods. The other table ("BUDGET") contains...
|
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) records and records on Table_TY only. Missing the records on View_LY only. Any known problems with FULL OUTER JOIN in DB2 or am I missing...
|
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 records, and another with approximately 6500 records. The records in the 600 record are a subset of the 6500 record table. Some of the data fields from...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |