#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ggant
 
Posts: n/a
Default If columns match

Is there a formula that I can use to see if numbers (some are Alphanumeric)
match. ie

A B
5 7
9 4
7 1

I want colums A3 and b1 to say they match and display Y in column C on
either line.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default If columns match

One way:

=IF(OR(COUNTIF(B:B,A1),COUNTIF(A:A,B1)),"Y","")

Copy down as far as necessary.

Note, however, that this will be ambiguous if more than one match is
associated with a row (e.g., B1 matches A3, and B3 matches A22).



In article ,
"ggant" wrote:

Is there a formula that I can use to see if numbers (some are Alphanumeric)
match. ie

A B
5 7
9 4
7 1

I want colums A3 and b1 to say they match and display Y in column C on
either line.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur
 
Posts: n/a
Default If columns match

Hi,

You may try the following array formula (Ctrl+Shift+Enter)

=IF(OR(EXACT(A1,$B$1:$B$3)),"Y","N")

Copy the formula down.

Regards,

Ashish Mathur

"ggant" wrote:

Is there a formula that I can use to see if numbers (some are Alphanumeric)
match. ie

A B
5 7
9 4
7 1

I want colums A3 and b1 to say they match and display Y in column C on
either line.

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
Match Each Numeric occurrence and Return Individual Rows of Data Sam via OfficeKB.com Excel Worksheet Functions 4 October 13th 05 04:22 AM
Can I use Excel to match text data from 2 separate columns ? Dan Excel Worksheet Functions 1 September 29th 05 03:51 AM
Finding a match in several columns Keren Excel Worksheet Functions 3 May 26th 05 02:32 PM
If two columns match then count one. How? Tried countif and sum . IMC Medrec Excel Worksheet Functions 1 February 14th 05 12:28 PM
Match/ Merge columns excel idiot Excel Discussion (Misc queries) 1 January 14th 05 07:51 AM


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