#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 113
Default count / match

Hi,

Column A Column B

John = return value of 1, if matches, else 2
John
Smith
Bob

I like to have a formula in column b, if item in A1, "John" matches
any item in column A, then show value of #1, else, #2

Any help?

THANKS!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default count / match

Maybe this:

=2-(COUNTIF(A$2:A$10,A2)1)

--
Biff
Microsoft Excel MVP


"Rachel" wrote in message
...
Hi,

Column A Column B

John = return value of 1, if matches, else 2
John
Smith
Bob

I like to have a formula in column b, if item in A1, "John" matches
any item in column A, then show value of #1, else, #2

Any help?

THANKS!



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 wild cards and then count LITTLE PETE Excel Discussion (Misc queries) 1 May 13th 08 05:52 PM
How to count the match letter within a string? Eric Excel Discussion (Misc queries) 7 August 22nd 07 03:43 AM
Match and Count duplicate names Donald B Excel Worksheet Functions 4 June 9th 07 08:05 PM
Count if match any of 3 strings GGG Excel Worksheet Functions 2 December 8th 05 11:14 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM


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