Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave
 
Posts: n/a
Default Indentify value from multiple values in a single cell

I am looking to produce a formula that shows if a number is "found" or "not
found".
I have list of over 1000 numbers in one column (1 number per row) . I am
trying to identify if those values are present in a range of numbers from
another worksheet(also in a single column). My challenge is that the range of
numbers that I am looking in has multiple values, separated by commas in a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Indentify value from multiple values in a single cell

Can you post a small example?

If you data looks like this:

Column A

45
1
84
99
8

Column H

1,12,20
32,44,55
18,99,65

In column B enter this formula and copy down:

=IF(SUMPRODUCT(--(ISNUMBER(FIND(","&A1&",",","&H$1:H$3&",")))),"mat ch","")

Column B will return "match" for 1 and 99

Biff

"Dave" wrote in message
...
I am looking to produce a formula that shows if a number is "found" or "not
found".
I have list of over 1000 numbers in one column (1 number per row) . I am
trying to identify if those values are present in a range of numbers from
another worksheet(also in a single column). My challenge is that the range
of
numbers that I am looking in has multiple values, separated by commas in a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Indentify value from multiple values in a single cell

=countif(sheet2!a:a,"*"&a1&"*")0

Will return True if it's found.

You may want to check for empty cells:
=if(a1="","",countif(sheet2!a:a,"*"&a1&"*")0)

or

=isnumber(match("*"&a1&"*",sheet2!a:a,0))
or
=if(a1="","",isnumber(match("*"&a1&"*",sheet2!a:a, 0)))





Dave wrote:

I am looking to produce a formula that shows if a number is "found" or "not
found".
I have list of over 1000 numbers in one column (1 number per row) . I am
trying to identify if those values are present in a range of numbers from
another worksheet(also in a single column). My challenge is that the range of
numbers that I am looking in has multiple values, separated by commas in a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Indentify value from multiple values in a single cell

Suppose the number in A1 is 1.

Sheet2!An = 11,21,31

=countif(sheet2!a:a,"*"&a1&"*")0 returns TRUE

Biff

"Dave Peterson" wrote in message
...
=countif(sheet2!a:a,"*"&a1&"*")0

Will return True if it's found.

You may want to check for empty cells:
=if(a1="","",countif(sheet2!a:a,"*"&a1&"*")0)

or

=isnumber(match("*"&a1&"*",sheet2!a:a,0))
or
=if(a1="","",isnumber(match("*"&a1&"*",sheet2!a:a, 0)))





Dave wrote:

I am looking to produce a formula that shows if a number is "found" or
"not
found".
I have list of over 1000 numbers in one column (1 number per row) . I am
trying to identify if those values are present in a range of numbers from
another worksheet(also in a single column). My challenge is that the
range of
numbers that I am looking in has multiple values, separated by commas in
a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp


--

Dave Peterson



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Indentify value from multiple values in a single cell

Yes it does.

Biff wrote:

Suppose the number in A1 is 1.

Sheet2!An = 11,21,31

=countif(sheet2!a:a,"*"&a1&"*")0 returns TRUE

Biff

"Dave Peterson" wrote in message
...
=countif(sheet2!a:a,"*"&a1&"*")0

Will return True if it's found.

You may want to check for empty cells:
=if(a1="","",countif(sheet2!a:a,"*"&a1&"*")0)

or

=isnumber(match("*"&a1&"*",sheet2!a:a,0))
or
=if(a1="","",isnumber(match("*"&a1&"*",sheet2!a:a, 0)))





Dave wrote:

I am looking to produce a formula that shows if a number is "found" or
"not
found".
I have list of over 1000 numbers in one column (1 number per row) . I am
trying to identify if those values are present in a range of numbers from
another worksheet(also in a single column). My challenge is that the
range of
numbers that I am looking in has multiple values, separated by commas in
a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave
 
Posts: n/a
Default Indentify value from multiple values in a single cell

Dave, Bif,
Thanks for the replies. I am a lot closer than I was. Is there an addition
to the formula that can give me an exact match? The example that Bif wrote
below is exactly whats happening with some of my data.
--
dmp


"Dave Peterson" wrote:

Yes it does.

Biff wrote:

Suppose the number in A1 is 1.

Sheet2!An = 11,21,31

=countif(sheet2!a:a,"*"&a1&"*")0 returns TRUE

Biff

"Dave Peterson" wrote in message
...
=countif(sheet2!a:a,"*"&a1&"*")0

Will return True if it's found.

You may want to check for empty cells:
=if(a1="","",countif(sheet2!a:a,"*"&a1&"*")0)

or

=isnumber(match("*"&a1&"*",sheet2!a:a,0))
or
=if(a1="","",isnumber(match("*"&a1&"*",sheet2!a:a, 0)))





Dave wrote:

I am looking to produce a formula that shows if a number is "found" or
"not
found".
I have list of over 1000 numbers in one column (1 number per row) . I am
trying to identify if those values are present in a range of numbers from
another worksheet(also in a single column). My challenge is that the
range of
numbers that I am looking in has multiple values, separated by commas in
a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp

--

Dave Peterson


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Indentify value from multiple values in a single cell

Did you try the formula I suggested?

It will only "work" for exact matches.

Biff

"Dave" wrote in message
...
Dave, Bif,
Thanks for the replies. I am a lot closer than I was. Is there an addition
to the formula that can give me an exact match? The example that Bif wrote
below is exactly whats happening with some of my data.
--
dmp


"Dave Peterson" wrote:

Yes it does.

Biff wrote:

Suppose the number in A1 is 1.

Sheet2!An = 11,21,31

=countif(sheet2!a:a,"*"&a1&"*")0 returns TRUE

Biff

"Dave Peterson" wrote in message
...
=countif(sheet2!a:a,"*"&a1&"*")0

Will return True if it's found.

You may want to check for empty cells:
=if(a1="","",countif(sheet2!a:a,"*"&a1&"*")0)

or

=isnumber(match("*"&a1&"*",sheet2!a:a,0))
or
=if(a1="","",isnumber(match("*"&a1&"*",sheet2!a:a, 0)))





Dave wrote:

I am looking to produce a formula that shows if a number is "found"
or
"not
found".
I have list of over 1000 numbers in one column (1 number per row) .
I am
trying to identify if those values are present in a range of numbers
from
another worksheet(also in a single column). My challenge is that the
range of
numbers that I am looking in has multiple values, separated by
commas in
a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp

--

Dave Peterson


--

Dave Peterson



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Indentify value from multiple values in a single cell

I should have been more specific!

Use Biff's formula and toss mine in the trash!



Biff wrote:

Did you try the formula I suggested?

It will only "work" for exact matches.

Biff

"Dave" wrote in message
...
Dave, Bif,
Thanks for the replies. I am a lot closer than I was. Is there an addition
to the formula that can give me an exact match? The example that Bif wrote
below is exactly whats happening with some of my data.
--
dmp


"Dave Peterson" wrote:

Yes it does.

Biff wrote:

Suppose the number in A1 is 1.

Sheet2!An = 11,21,31

=countif(sheet2!a:a,"*"&a1&"*")0 returns TRUE

Biff

"Dave Peterson" wrote in message
...
=countif(sheet2!a:a,"*"&a1&"*")0

Will return True if it's found.

You may want to check for empty cells:
=if(a1="","",countif(sheet2!a:a,"*"&a1&"*")0)

or

=isnumber(match("*"&a1&"*",sheet2!a:a,0))
or
=if(a1="","",isnumber(match("*"&a1&"*",sheet2!a:a, 0)))





Dave wrote:

I am looking to produce a formula that shows if a number is "found"
or
"not
found".
I have list of over 1000 numbers in one column (1 number per row) .
I am
trying to identify if those values are present in a range of numbers
from
another worksheet(also in a single column). My challenge is that the
range of
numbers that I am looking in has multiple values, separated by
commas in
a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp

--

Dave Peterson

--

Dave Peterson


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave
 
Posts: n/a
Default Indentify value from multiple values in a single cell

Biff,
I finally got it to work. In the cells that had multiple values there were
spaces between the commas and each value.That was causing the formula to only
return the first value in each cell. I t"tweaked" the formula you wrote to
add a space with the commas in quotes and it worked perfectly.

I appreciate yours and Dave's responses to my question. It certainly saved a
lot time and was much more efficient.

Thanks again, Dave

--
dmp


"Biff" wrote:

Did you try the formula I suggested?

It will only "work" for exact matches.

Biff

"Dave" wrote in message
...
Dave, Bif,
Thanks for the replies. I am a lot closer than I was. Is there an addition
to the formula that can give me an exact match? The example that Bif wrote
below is exactly whats happening with some of my data.
--
dmp


"Dave Peterson" wrote:

Yes it does.

Biff wrote:

Suppose the number in A1 is 1.

Sheet2!An = 11,21,31

=countif(sheet2!a:a,"*"&a1&"*")0 returns TRUE

Biff

"Dave Peterson" wrote in message
...
=countif(sheet2!a:a,"*"&a1&"*")0

Will return True if it's found.

You may want to check for empty cells:
=if(a1="","",countif(sheet2!a:a,"*"&a1&"*")0)

or

=isnumber(match("*"&a1&"*",sheet2!a:a,0))
or
=if(a1="","",isnumber(match("*"&a1&"*",sheet2!a:a, 0)))





Dave wrote:

I am looking to produce a formula that shows if a number is "found"
or
"not
found".
I have list of over 1000 numbers in one column (1 number per row) .
I am
trying to identify if those values are present in a range of numbers
from
another worksheet(also in a single column). My challenge is that the
range of
numbers that I am looking in has multiple values, separated by
commas in
a
single cell. Looks like it was from an Access data dump. Any help is
appreciated.
--
dmp

--

Dave Peterson

--

Dave Peterson




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Indentify value from multiple values in a single cell

Good deal! Thanks for the feedback.

Biff

"Dave" wrote in message
...
Biff,
I finally got it to work. In the cells that had multiple values there were
spaces between the commas and each value.That was causing the formula to
only
return the first value in each cell. I t"tweaked" the formula you wrote to
add a space with the commas in quotes and it worked perfectly.

I appreciate yours and Dave's responses to my question. It certainly saved
a
lot time and was much more efficient.

Thanks again, Dave

--
dmp


"Biff" wrote:

Did you try the formula I suggested?

It will only "work" for exact matches.

Biff

"Dave" wrote in message
...
Dave, Bif,
Thanks for the replies. I am a lot closer than I was. Is there an
addition
to the formula that can give me an exact match? The example that Bif
wrote
below is exactly whats happening with some of my data.
--
dmp


"Dave Peterson" wrote:

Yes it does.

Biff wrote:

Suppose the number in A1 is 1.

Sheet2!An = 11,21,31

=countif(sheet2!a:a,"*"&a1&"*")0 returns TRUE

Biff

"Dave Peterson" wrote in message
...
=countif(sheet2!a:a,"*"&a1&"*")0

Will return True if it's found.

You may want to check for empty cells:
=if(a1="","",countif(sheet2!a:a,"*"&a1&"*")0)

or

=isnumber(match("*"&a1&"*",sheet2!a:a,0))
or
=if(a1="","",isnumber(match("*"&a1&"*",sheet2!a:a, 0)))





Dave wrote:

I am looking to produce a formula that shows if a number is
"found"
or
"not
found".
I have list of over 1000 numbers in one column (1 number per row)
.
I am
trying to identify if those values are present in a range of
numbers
from
another worksheet(also in a single column). My challenge is that
the
range of
numbers that I am looking in has multiple values, separated by
commas in
a
single cell. Looks like it was from an Access data dump. Any help
is
appreciated.
--
dmp

--

Dave Peterson

--

Dave Peterson






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
Auto fill multiple cells depending on single cell value henrat Excel Worksheet Functions 2 November 28th 05 05:59 AM
How do I Auto-Filter with multiple values in a cell in Excel? Burghthing Excel Discussion (Misc queries) 2 November 23rd 05 05:41 PM
How can I break values apart that are in the same cell? Phil Excel Worksheet Functions 3 October 4th 05 03:41 PM
city, state, zip from a single cell to multiple cells wjs2002 Excel Discussion (Misc queries) 3 April 29th 05 07:02 AM
multiple validation in a single cell whowatwerwyhow Excel Discussion (Misc queries) 5 April 15th 05 02:37 PM


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