Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 90
Default comparing a number in a cell against multiple numbers in the same

Hey again gang,
should be an easy one.

In cell A16 I have the number 27
In cell U15 I have 23,35,4,16 (written just like this).

What I'm looking for is in cell V15 to determine whether the number in A16
(27) is a match to any of the numbers in u15 (23,35,4,16) - this time it
isn't.

If it is, then I would like to get a "Match", if not "No Match"

Thanks!
Matt

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default comparing a number in a cell against multiple numbers in the same

Here's my first thought:
=IF(ISERROR(FIND(" " & A16 & " "," " & SUBSTITUTE(U15,","," , ") & " ")),"no
match","match")

I'm putting each number between a couple of space characters then looking
for a match. That avoids the potential of matching a couple of digits (eg
finding "23" as part of "423"). Then if the 'find' returns an error, then
I've got 'no match'.


"mpenkala" wrote:

Hey again gang,
should be an easy one.

In cell A16 I have the number 27
In cell U15 I have 23,35,4,16 (written just like this).

What I'm looking for is in cell V15 to determine whether the number in A16
(27) is a match to any of the numbers in u15 (23,35,4,16) - this time it
isn't.

If it is, then I would like to get a "Match", if not "No Match"

Thanks!
Matt

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 90
Default comparing a number in a cell against multiple numbers in the s

excellent, works like a charm.

Appriciate the help!
Matt


"bpeltzer" wrote:

Here's my first thought:
=IF(ISERROR(FIND(" " & A16 & " "," " & SUBSTITUTE(U15,","," , ") & " ")),"no
match","match")

I'm putting each number between a couple of space characters then looking
for a match. That avoids the potential of matching a couple of digits (eg
finding "23" as part of "423"). Then if the 'find' returns an error, then
I've got 'no match'.


"mpenkala" wrote:

Hey again gang,
should be an easy one.

In cell A16 I have the number 27
In cell U15 I have 23,35,4,16 (written just like this).

What I'm looking for is in cell V15 to determine whether the number in A16
(27) is a match to any of the numbers in u15 (23,35,4,16) - this time it
isn't.

If it is, then I would like to get a "Match", if not "No Match"

Thanks!
Matt

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default comparing a number in a cell against multiple numbers in the same

Another one:

=IF(COUNT(FIND(","&A16&",",","&U15&",")),"Match"," No Match")

--
Biff
Microsoft Excel MVP


"mpenkala" wrote in message
...
Hey again gang,
should be an easy one.

In cell A16 I have the number 27
In cell U15 I have 23,35,4,16 (written just like this).

What I'm looking for is in cell V15 to determine whether the number in A16
(27) is a match to any of the numbers in u15 (23,35,4,16) - this time it
isn't.

If it is, then I would like to get a "Match", if not "No Match"

Thanks!
Matt



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 characters in one cell to multiple cells Quirthanon Excel Worksheet Functions 1 August 30th 07 03:38 AM
Comparing multiple cell values scoobydoo2006 Excel Discussion (Misc queries) 0 June 13th 06 04:58 PM
comparing a value in a cell to see if it is higher than a number PK Excel Worksheet Functions 9 June 2nd 05 03:35 PM
INTRICATE PROBLEM- How to find multiple text,excluding "H", in a multiple range of cells, then replacing 0 with another number in another cell Tourcat Excel Worksheet Functions 1 February 8th 05 06:26 PM
Can you add multiple numbers in the same cell%3f pam Excel Worksheet Functions 2 January 28th 05 04:13 PM


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