Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Can anyone help with a Simple Lookup please?

Hi

I have 3 columns, A, B and C. A and B contain email addresses, and I
want to set C to "Y" if the email address in A is also in B.

A has thousands of entries, B has hundreds, so its not a simple matter
of sorting them and manually setting C. Where the email addresses
match, they will match exactly (they're from the same source table).

Spreadsheet formulae are not my forte, and the help on lookup hasn't
really helped.

Any ideas?


Shaun

  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Can anyone help with a Simple Lookup please?

try in C1
=if(countif(B:B,A1)0,"Y","")
and copy down



"shauny" wrote:

Hi

I have 3 columns, A, B and C. A and B contain email addresses, and I
want to set C to "Y" if the email address in A is also in B.

A has thousands of entries, B has hundreds, so its not a simple matter
of sorting them and manually setting C. Where the email addresses
match, they will match exactly (they're from the same source table).

Spreadsheet formulae are not my forte, and the help on lookup hasn't
really helped.

Any ideas?


Shaun


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Can anyone help with a Simple Lookup please?

In first row where there are email addresses in A and B, put this in C
=IF(COUNTIF(A$1:A$9,B1)0,"Y","")
change the A$1:A$9 to reference all the cells used in column A. Fill the
formula to the end of the list in column B.

That will show any that are in both lists, whether or not they are on the
same row.

"shauny" wrote:

Hi

I have 3 columns, A, B and C. A and B contain email addresses, and I
want to set C to "Y" if the email address in A is also in B.

A has thousands of entries, B has hundreds, so its not a simple matter
of sorting them and manually setting C. Where the email addresses
match, they will match exactly (they're from the same source table).

Spreadsheet formulae are not my forte, and the help on lookup hasn't
really helped.

Any ideas?


Shaun


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Can anyone help with a Simple Lookup please?

One way:

C1: =IF(COUNTIF(B:B,A1),"Y","")

In article .com,
shauny wrote:

Hi

I have 3 columns, A, B and C. A and B contain email addresses, and I
want to set C to "Y" if the email address in A is also in B.

A has thousands of entries, B has hundreds, so its not a simple matter
of sorting them and manually setting C. Where the email addresses
match, they will match exactly (they're from the same source table).

Spreadsheet formulae are not my forte, and the help on lookup hasn't
really helped.

Any ideas?


Shaun

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default Can anyone help with a Simple Lookup please?

Shaun,

This formula will tell you how many matching entries for A2 exist anywhere in column B:
COUNTIF(B:B,A2)

This will put "y" in the cell
=IF(COUNTIF(B:B,A2),"y","")

Since there are more entries in column A than in B, I don't know where you want to put the
formula. Should it match B against A (the opposite of above)? If so.

=IF(COUNTIF(A:A,B2),"y","")

--
Earl Kiosterud
www.smokeylake.com

Note: Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
"shauny" wrote in message
oups.com...
Hi

I have 3 columns, A, B and C. A and B contain email addresses, and I
want to set C to "Y" if the email address in A is also in B.

A has thousands of entries, B has hundreds, so its not a simple matter
of sorting them and manually setting C. Where the email addresses
match, they will match exactly (they're from the same source table).

Spreadsheet formulae are not my forte, and the help on lookup hasn't
really helped.

Any ideas?


Shaun





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Can anyone help with a Simple Lookup please?

On 5 Jun, 17:18, "Earl Kiosterud" wrote:
Shaun,

This formula will tell you how many matching entries for A2 exist anywhere in column B:
COUNTIF(B:B,A2)

This will put "y" in the cell
=IF(COUNTIF(B:B,A2),"y","")

Since there are more entries in column A than in B, I don't know where you want to put the
formula. Should it match B against A (the opposite of above)? If so.

=IF(COUNTIF(A:A,B2),"y","")

--
Earl Kiosterudwww.smokeylake.com

Note: Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------"shauny" wrote in message

oups.com...

Hi


I have 3 columns, A, B and C. A and B contain email addresses, and I
want to set C to "Y" if the email address in A is also in B.


A has thousands of entries, B has hundreds, so its not a simple matter
of sorting them and manually setting C. Where the email addresses
match, they will match exactly (they're from the same source table).


Spreadsheet formulae are not my forte, and the help on lookup hasn't
really helped.


Any ideas?


Shaun


Hi

Excellent - many thanks people!

Regards
Shaun

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
Simple Lookup? Saxman Excel Discussion (Misc queries) 0 October 23rd 06 02:37 PM
Simple lookup - or maybe not so simple - help! ChrisHodds Excel Worksheet Functions 1 September 27th 06 03:09 PM
simple lookup Max_power Excel Discussion (Misc queries) 3 April 21st 06 11:40 AM
Lookup help (simple) Boggis2000 Excel Worksheet Functions 4 January 25th 06 11:41 AM
Simple lookup Bill Excel Worksheet Functions 2 April 26th 05 03:51 AM


All times are GMT +1. The time now is 11:01 AM.

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

About Us

"It's about Microsoft Excel"