Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
stevel
 
Posts: n/a
Default Comparing two columns in two different worksheets

I am trying to compare numbers in two different worksheets. In worksheet one
I have a list of number and in worksheet two I have a list of numbers, but I
want to know if a number appears in both worksheets. How do I do this?
Thanks in advance for your assistance.


  #2   Report Post  
Alan
 
Posts: n/a
Default

With the lists in Sheet1 Column A and Sheet2 Column A, somewhere else
=IF(AND(COUNTIF(Sheet1!A:A,Sheet1!A1)0,COUNTIF(Sh eet2!A:A,Sheet2!A1)0),"Duplicate","")
and copy dwn to the last cell in the ranges,
Regards,
Alan.
"stevel" wrote in message
...
I am trying to compare numbers in two different worksheets. In worksheet
one
I have a list of number and in worksheet two I have a list of numbers, but
I
want to know if a number appears in both worksheets. How do I do this?
Thanks in advance for your assistance.




  #3   Report Post  
Alan
 
Posts: n/a
Default

Sorry, that doesnt work, please ignore,
Cringe,
Alan.
=IF(AND(COUNTIF(Sheet1!A:A,Sheet1!A1)0,COUNTIF(Sh eet2!A:A,Sheet2!A1)0),"Duplicate","")"Alan" wrote in .. . With the lists in Sheet1 Column A and Sheet2 Column A, somewhere else=IF(AND(COUNTIF(Sheet1!A:A,Sheet1!A1)0,COUNT IF(Sheet2!A:A,Sheet2!A1)0),"Duplicate","") and copy dwn to the last cell in the ranges, Regards, Alan. "stevel" wrote in ...I am trying to compare numbers in two different worksheets. In worksheetone I have a list of number and in worksheet two I have a list of numbers,but I want to know if a number appears in both worksheets. How do I do this? Thanks in advance for your assistance.

  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Use a simple countif, assume you do this in sheet1 and the other list is in
sheet2, insert a new column next to the one in sheet1 assume the list is in A
and the new column is B

=IF(COUNTIF('Sheet2'!$A$1:$A$500,A1)0,"Exists","N on-existant")

copy down the formula

Regards,

Peo Sjoblom

"stevel" wrote:

I am trying to compare numbers in two different worksheets. In worksheet one
I have a list of number and in worksheet two I have a list of numbers, but I
want to know if a number appears in both worksheets. How do I do this?
Thanks in advance for your assistance.


  #5   Report Post  
stevel
 
Posts: n/a
Default

I am just trying to be clear on how to use the formula, so if I have two
separate spreadsheets with numbers and I want to see if the same numbers
appear in both spreadsheets this formula should work? Thanks again for your
assistance.

"Peo Sjoblom" wrote:

Use a simple countif, assume you do this in sheet1 and the other list is in
sheet2, insert a new column next to the one in sheet1 assume the list is in A
and the new column is B

=IF(COUNTIF('Sheet2'!$A$1:$A$500,A1)0,"Exists","N on-existant")

copy down the formula

Regards,

Peo Sjoblom

"stevel" wrote:

I am trying to compare numbers in two different worksheets. In worksheet one
I have a list of number and in worksheet two I have a list of numbers, but I
want to know if a number appears in both worksheets. How do I do this?
Thanks in advance for your assistance.


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 columns Marc Charts and Charting in Excel 1 February 18th 05 02:17 AM
Comparing data in two similar worksheets HiRllr21 Excel Discussion (Misc queries) 0 February 2nd 05 05:01 PM
Comparing Data in 2 columns suzb Excel Worksheet Functions 2 January 6th 05 02:39 AM
compare columns of different worksheets Classic Excel Discussion (Misc queries) 2 December 2nd 04 10:09 PM
Comparing Data in two columns Marianne Excel Worksheet Functions 3 November 5th 04 10:26 PM


All times are GMT +1. The time now is 03:46 AM.

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"