Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RH RH is offline
external usenet poster
 
Posts: 17
Default Column Comparison Trouble

I'm sure this is somewhat simple, but I just can't figure it out. I have two
columns - A lists a unique number, and B lists all the times this number was
used (other details were cut). So I think it makes A to B one to many.

I need a formula that will confirm or show evidence that all records in A
were used in B, and if any were missed point this out. I have been trying
vlookup with no luck. Example layout below - I would like column C to say if
each number in A was used in B. Thanks in advance.

A B
1 1
2 1
3 1
4 2
5 2
3
4
5
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Column Comparison Trouble

One way

Put in C1:
=IF(A1="","",IF(COUNTIF(B:B,A1)0,"Y","N"))
Copy down. "Y" will be returned where the number in col A appears in col B
("used"), "N" otherwise.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


"RH" wrote:

I'm sure this is somewhat simple, but I just can't figure it out. I have two
columns - A lists a unique number, and B lists all the times this number was
used (other details were cut). So I think it makes A to B one to many.

I need a formula that will confirm or show evidence that all records in A
were used in B, and if any were missed point this out. I have been trying
vlookup with no luck. Example layout below - I would like column C to say if
each number in A was used in B. Thanks in advance.

A B
1 1
2 1
3 1
4 2
5 2
3
4
5

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Column Comparison Trouble

In column C put in this and copy down =COUNTIF(B:B,A1) and in any
other cell put in this =COUNTIF(C:C,0) this will return a number 0
if there are records in A that don't exist in B





On Nov 1, 2:44 pm, Max wrote:
One way

Put in C1:
=IF(A1="","",IF(COUNTIF(B:B,A1)0,"Y","N"))
Copy down. "Y" will be returned where the number in col A appears in col B
("used"), "N" otherwise.
--
Max
Singaporehttp://savefile.com/projects/236895
xdemechanik
---



"RH" wrote:
I'm sure this is somewhat simple, but I just can't figure it out. I have two
columns - A lists a unique number, and B lists all the times this number was
used (other details were cut). So I think it makes A to B one to many.


I need a formula that will confirm or show evidence that all records in A
were used in B, and if any were missed point this out. I have been trying
vlookup with no luck. Example layout below - I would like column C to say if
each number in A was used in B. Thanks in advance.


A B
1 1
2 1
3 1
4 2
5 2
3
4
5- Hide quoted text -


- Show quoted text -



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
Stock Symbol Column comparison Mike Excel Worksheet Functions 10 August 15th 07 11:12 AM
Cell Column Comparison ace21 Excel Worksheet Functions 3 January 16th 07 04:29 PM
Excel Chart - 2 column stack /w 1 comparison column wclairmont Charts and Charting in Excel 1 December 1st 06 01:54 AM
multiple column comparison on 2 worksheets [email protected] Excel Worksheet Functions 1 November 10th 06 09:39 AM
Trouble opening older Excel wbks - appears to becode in column A Joe Excel Worksheet Functions 1 February 19th 05 02:47 AM


All times are GMT +1. The time now is 02:00 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"