#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Comparing 2 ranges?

Guys, i'm completely stuck on this and hoping you can help. i have 2
columns with emails. i need to compare column B to Column A. if an
email that is in column B is also in column A, then i don't need it.
but if it's unique to column B (it's not in column A as well) then i
need that email. i can't for the life of me figure out how to do
this. i was doing an IF function, but it's not working. i was doing
this =IF(B2=A1:A443, 'NO', B2). so basically, if the email in cell B2
is found in the range A1 to A443, then type NO, if the email in B2 is
NOT found, then give me the email that is in B2. this function is not
working though. can you help me out?

Thank you

Carla

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Comparing 2 ranges?

Have a look at VLOOKUP
More details in morning

--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"calberto22" wrote in message
ups.com...
Guys, i'm completely stuck on this and hoping you can help. i have 2
columns with emails. i need to compare column B to Column A. if an
email that is in column B is also in column A, then i don't need it.
but if it's unique to column B (it's not in column A as well) then i
need that email. i can't for the life of me figure out how to do
this. i was doing an IF function, but it's not working. i was doing
this =IF(B2=A1:A443, 'NO', B2). so basically, if the email in cell B2
is found in the range A1 to A443, then type NO, if the email in B2 is
NOT found, then give me the email that is in B2. this function is not
working though. can you help me out?

Thank you

Carla



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Comparing 2 ranges?

Assuming source data running in cols A and B, from row1 down
In C1: =IF(B1="","",IF(ISNUMBER(MATCH(B1,A:A,0)),"",ROW() ))
In D1: =IF(ROW()COUNT(C:C),"",INDEX(B:B,SMALL(C:C,ROW()) ))
Select C1:D1, copy down to last row of data in col B. Hide away col C. Col D
will return the required results, ie email in col B not found in col A, with
all results neatly bunched at the top
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"calberto22" wrote in message
ups.com...
Guys, i'm completely stuck on this and hoping you can help. i have 2
columns with emails. i need to compare column B to Column A. if an
email that is in column B is also in column A, then i don't need it.
but if it's unique to column B (it's not in column A as well) then i
need that email. i can't for the life of me figure out how to do
this. i was doing an IF function, but it's not working. i was doing
this =IF(B2=A1:A443, 'NO', B2). so basically, if the email in cell B2
is found in the range A1 to A443, then type NO, if the email in B2 is
NOT found, then give me the email that is in B2. this function is not
working though. can you help me out?

Thank you

Carla



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 230
Default Comparing 2 ranges?

One way....
Paste this formula into C1 and copy down as far as needed.
=IF(ISNA(VLOOKUP(B1,A:A,1,FALSE))=TRUE,B1,"")

Rob

"calberto22" wrote in message
ups.com...
Guys, i'm completely stuck on this and hoping you can help. i have 2
columns with emails. i need to compare column B to Column A. if an
email that is in column B is also in column A, then i don't need it.
but if it's unique to column B (it's not in column A as well) then i
need that email. i can't for the life of me figure out how to do
this. i was doing an IF function, but it's not working. i was doing
this =IF(B2=A1:A443, 'NO', B2). so basically, if the email in cell B2
is found in the range A1 to A443, then type NO, if the email in B2 is
NOT found, then give me the email that is in B2. this function is not
working though. can you help me out?

Thank you

Carla



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
comparing two text ranges crainone Excel Discussion (Misc queries) 5 June 17th 07 09:12 PM
comparing ranges/arrays asaylor Excel Worksheet Functions 7 June 13th 06 11:53 PM
Comparing ranges: ben simpson Excel Discussion (Misc queries) 1 March 8th 06 04:35 AM
How to : Comparing Two Ranges lockwood7 Excel Worksheet Functions 3 August 3rd 05 01:43 PM
comparing multiple ranges Steve Excel Discussion (Misc queries) 1 April 27th 05 07:38 PM


All times are GMT +1. The time now is 11:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"