#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bob
 
Posts: n/a
Default IF Statement

I have two columns of names. I want to find the names that match in each
column and display a message, "MATCH," in a third column.

I have tried this formula but it is not working:

IF(A2=B2:B1000,"MATCH",0)
Ctrl+Shift+Enter for array

Can anyone help?

Thanks,
Bob
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default IF Statement

You can use the COUNTIF() function:


=IF(COUNTIF(B:B,A2)0,"match","")
--
Gary's Student


"bob" wrote:

I have two columns of names. I want to find the names that match in each
column and display a message, "MATCH," in a third column.

I have tried this formula but it is not working:

IF(A2=B2:B1000,"MATCH",0)
Ctrl+Shift+Enter for array

Can anyone help?

Thanks,
Bob

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bob
 
Posts: n/a
Default IF Statement

Sorry but that is not working. Perhaps i didn't explain it correctly:

Column A Column B Column C
Row 1 name1 name4 formula = "Match"
Row 2 name2 name12 formula = "No Match"
Row 3 name3 name 7 formula = "No Match"
Row 4 name4 name1 formula = "Match"
Row 5 name5 name4 formula = "No Match"

As shown, I am trying to create a formula in Column C that will display
whether the value in Column A is present anywhere in Column B. In the example
above, Rows 1 and 4 result in "Match" because name1 and name4 are present in
Column B.

Make sense?

Thanks,
Bob

"Gary''s Student" wrote:

You can use the COUNTIF() function:


=IF(COUNTIF(B:B,A2)0,"match","")
--
Gary's Student


"bob" wrote:

I have two columns of names. I want to find the names that match in each
column and display a message, "MATCH," in a third column.

I have tried this formula but it is not working:

IF(A2=B2:B1000,"MATCH",0)
Ctrl+Shift+Enter for array

Can anyone help?

Thanks,
Bob

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default IF Statement


Gary''s student's suggestion should work for you, in C2 copied down
column but if you want anoher option try this

=IF(ISNA(MATCH(A2,B:B,0)),"No ",)&"Match"


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=503671

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default IF Statement


try this..

in C1 enter the formula

=if(A1=B1,"match","no match")

drag the formula upto which A1 & B1 has data..!

is it ok?!

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=503671



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur
 
Posts: n/a
Default IF Statement

Dear Bob,

You may want to try this array formula (Ctrl+Shift+Enter)

=OR(EXACT(A11,$B$11:$B$13))

Regards

Ashish Mathur


"bob" wrote:

I have two columns of names. I want to find the names that match in each
column and display a message, "MATCH," in a third column.

I have tried this formula but it is not working:

IF(A2=B2:B1000,"MATCH",0)
Ctrl+Shift+Enter for array

Can anyone help?

Thanks,
Bob

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
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
IF Statement problem trixma New Users to Excel 3 September 27th 05 06:36 AM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM


All times are GMT +1. The time now is 04:12 PM.

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"