Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

I am reposting this to see if I can get another answer.

I need a formula that will allow me to search a column (B1:B19989) that
contains text with the data from a column (A1:A32417) that contains a list of
part numbers and display a result(True/False) into another column (C). Column
B's text has the part numbers mixed in with the text. I need to know which
numbers from column A are found within the text of column B.

This is what I have tried in C1: =VLOOKUP(A1,CATALOG,2)

All I get is #N/A - I know that the value in A1 exists in CATALOG

CATALOG=The name of array B1:B19989
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Find data in one table from another.

Hi

You probably need to add the optional 4th argument to Vlookup, of either
FALSE or 0.
This is necessary when the data is not sorted alphabetically.
C1: =VLOOKUP(A1,CATALOG,2,0)


--
Regards

Roger Govier


"micmed" wrote in message
...
I am reposting this to see if I can get another answer.

I need a formula that will allow me to search a column (B1:B19989)
that
contains text with the data from a column (A1:A32417) that contains a
list of
part numbers and display a result(True/False) into another column (C).
Column
B's text has the part numbers mixed in with the text. I need to know
which
numbers from column A are found within the text of column B.

This is what I have tried in C1: =VLOOKUP(A1,CATALOG,2)

All I get is #N/A - I know that the value in A1 exists in CATALOG

CATALOG=The name of array B1:B19989



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Find data in one table from another.

See if one of these works for you:

This one returns TRUE/FALSE:
C1: =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

This one returns the Row Number of the first matched item in CATALOG:
C1: =SUMPRODUCT((--ISNUMBER(SEARCH(A1,CATALOG))0)*ROW(CATALOG))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

I am reposting this to see if I can get another answer.

I need a formula that will allow me to search a column (B1:B19989) that
contains text with the data from a column (A1:A32417) that contains a list of
part numbers and display a result(True/False) into another column (C). Column
B's text has the part numbers mixed in with the text. I need to know which
numbers from column A are found within the text of column B.

This is what I have tried in C1: =VLOOKUP(A1,CATALOG,2)

All I get is #N/A - I know that the value in A1 exists in CATALOG

CATALOG=The name of array B1:B19989

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Find data in one table from another.

Actually, my second formula returns the SUM of the row numbers if there is
more than one match. :\

If there is the possibility of multiple matches, let us know.


***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

See if one of these works for you:

This one returns TRUE/FALSE:
C1: =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

This one returns the Row Number of the first matched item in CATALOG:
C1: =SUMPRODUCT((--ISNUMBER(SEARCH(A1,CATALOG))0)*ROW(CATALOG))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

I am reposting this to see if I can get another answer.

I need a formula that will allow me to search a column (B1:B19989) that
contains text with the data from a column (A1:A32417) that contains a list of
part numbers and display a result(True/False) into another column (C). Column
B's text has the part numbers mixed in with the text. I need to know which
numbers from column A are found within the text of column B.

This is what I have tried in C1: =VLOOKUP(A1,CATALOG,2)

All I get is #N/A - I know that the value in A1 exists in CATALOG

CATALOG=The name of array B1:B19989

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Find data in one table from another.

If I understand your posting correctly, you are saying that you have
something like this in column A:

1234
567
8914
23456

i.e. part numbers - you do not state if these are in order or if they
follow a particular format (eg 6 digit). In column B you have text
which contains the part number, something like:

1234 wheel
567 passenger door
8914 headlamp
23456 rear bumper

Again, you give us no examples of what this is like - are the part
numbers always to the left, or can they be embedded within the text?
Are they always separated from the text by at least one space?

If this is a fair description of your problem, then VLOOKUP won't work
on its own. But, in order to give you some further help you do need to
describe your data a bit more fully with examples.

Pete



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

Thanks Ron and Roger for responding. Rogers solution still produces #N/A and
Ron's returns FALSE for all rows in column A. I tried both on cells that I
knew did and did not exist in CATALOG. Any other ideas?

"Ron Coderre" wrote:

Actually, my second formula returns the SUM of the row numbers if there is
more than one match. :\

If there is the possibility of multiple matches, let us know.


***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

See if one of these works for you:

This one returns TRUE/FALSE:
C1: =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

This one returns the Row Number of the first matched item in CATALOG:
C1: =SUMPRODUCT((--ISNUMBER(SEARCH(A1,CATALOG))0)*ROW(CATALOG))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

I am reposting this to see if I can get another answer.

I need a formula that will allow me to search a column (B1:B19989) that
contains text with the data from a column (A1:A32417) that contains a list of
part numbers and display a result(True/False) into another column (C). Column
B's text has the part numbers mixed in with the text. I need to know which
numbers from column A are found within the text of column B.

This is what I have tried in C1: =VLOOKUP(A1,CATALOG,2)

All I get is #N/A - I know that the value in A1 exists in CATALOG

CATALOG=The name of array B1:B19989

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

Thanks for asking Pete. The part numbers do not follow any particular format.
They could be:
12345
34-5678
FL-975
3K-23G-85
WPL-1176

Some of the part numbers are embedded, some are to the left and all are
seperated by at least one space.

WPL-1176 €¢ $39.99
6 Ft. FWC-9-9-6 . . . . . . . . . . . . . . . . . . . . . . . . . $44.9510 Ft.
FW6-FW6CM FWA-6F-4M FWA-6M-4F FW-6J-4P FW6-BLCM

"Pete" wrote:

If I understand your posting correctly, you are saying that you have
something like this in column A:

1234
567
8914
23456

i.e. part numbers - you do not state if these are in order or if they
follow a particular format (eg 6 digit). In column B you have text
which contains the part number, something like:

1234 wheel
567 passenger door
8914 headlamp
23456 rear bumper

Again, you give us no examples of what this is like - are the part
numbers always to the left, or can they be embedded within the text?
Are they always separated from the text by at least one space?

If this is a fair description of your problem, then VLOOKUP won't work
on its own. But, in order to give you some further help you do need to
describe your data a bit more fully with examples.

Pete


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Find data in one table from another.

I just tested my formulas with your posted data formats.

Just to reiterate:
You have a part number list in Col_A.
You have a catalog list in Col_B of the same sheet.
You want to know if each part number in Col_A exists on any line in the
catalog.

If that Is that correct, then both formulas in C1 and copied down worked fine.

I suspect that something else is impacting your results. Perhaps the
references need to be adjusted.


***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks Ron and Roger for responding. Rogers solution still produces #N/A and
Ron's returns FALSE for all rows in column A. I tried both on cells that I
knew did and did not exist in CATALOG. Any other ideas?

"Ron Coderre" wrote:

Actually, my second formula returns the SUM of the row numbers if there is
more than one match. :\

If there is the possibility of multiple matches, let us know.


***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

See if one of these works for you:

This one returns TRUE/FALSE:
C1: =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

This one returns the Row Number of the first matched item in CATALOG:
C1: =SUMPRODUCT((--ISNUMBER(SEARCH(A1,CATALOG))0)*ROW(CATALOG))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

I am reposting this to see if I can get another answer.

I need a formula that will allow me to search a column (B1:B19989) that
contains text with the data from a column (A1:A32417) that contains a list of
part numbers and display a result(True/False) into another column (C). Column
B's text has the part numbers mixed in with the text. I need to know which
numbers from column A are found within the text of column B.

This is what I have tried in C1: =VLOOKUP(A1,CATALOG,2)

All I get is #N/A - I know that the value in A1 exists in CATALOG

CATALOG=The name of array B1:B19989

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

Does it matter that some of the cells in Col_A have a warning stating the
number is stored as text? I have tried changing all of Col_A to General but
that doasn't get rid of the warning.

"Ron Coderre" wrote:

I just tested my formulas with your posted data formats.

Just to reiterate:
You have a part number list in Col_A.
You have a catalog list in Col_B of the same sheet.
You want to know if each part number in Col_A exists on any line in the
catalog.

If that Is that correct, then both formulas in C1 and copied down worked fine.

I suspect that something else is impacting your results. Perhaps the
references need to be adjusted.


***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks Ron and Roger for responding. Rogers solution still produces #N/A and
Ron's returns FALSE for all rows in column A. I tried both on cells that I
knew did and did not exist in CATALOG. Any other ideas?

"Ron Coderre" wrote:

Actually, my second formula returns the SUM of the row numbers if there is
more than one match. :\

If there is the possibility of multiple matches, let us know.


***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

See if one of these works for you:

This one returns TRUE/FALSE:
C1: =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

This one returns the Row Number of the first matched item in CATALOG:
C1: =SUMPRODUCT((--ISNUMBER(SEARCH(A1,CATALOG))0)*ROW(CATALOG))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

I am reposting this to see if I can get another answer.

I need a formula that will allow me to search a column (B1:B19989) that
contains text with the data from a column (A1:A32417) that contains a list of
part numbers and display a result(True/False) into another column (C). Column
B's text has the part numbers mixed in with the text. I need to know which
numbers from column A are found within the text of column B.

This is what I have tried in C1: =VLOOKUP(A1,CATALOG,2)

All I get is #N/A - I know that the value in A1 exists in CATALOG

CATALOG=The name of array B1:B19989

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default Find data in one table from another.

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Find data in one table from another.

Kostis is correct...I wasn't aware that a part number could appear in the
CATALOG range more than once and I didn't allow for that in my formula.

This one allows for mutiple occurrences:
C1: =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
copy down as far as needed.

(Nice catch, Kostis)
***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Does it matter that some of the cells in Col_A have a warning stating the
number is stored as text? I have tried changing all of Col_A to General but
that doasn't get rid of the warning.

"Ron Coderre" wrote:

I just tested my formulas with your posted data formats.

Just to reiterate:
You have a part number list in Col_A.
You have a catalog list in Col_B of the same sheet.
You want to know if each part number in Col_A exists on any line in the
catalog.

If that Is that correct, then both formulas in C1 and copied down worked fine.

I suspect that something else is impacting your results. Perhaps the
references need to be adjusted.


***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks Ron and Roger for responding. Rogers solution still produces #N/A and
Ron's returns FALSE for all rows in column A. I tried both on cells that I
knew did and did not exist in CATALOG. Any other ideas?

"Ron Coderre" wrote:

Actually, my second formula returns the SUM of the row numbers if there is
more than one match. :\

If there is the possibility of multiple matches, let us know.


***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

See if one of these works for you:

This one returns TRUE/FALSE:
C1: =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

This one returns the Row Number of the first matched item in CATALOG:
C1: =SUMPRODUCT((--ISNUMBER(SEARCH(A1,CATALOG))0)*ROW(CATALOG))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

I am reposting this to see if I can get another answer.

I need a formula that will allow me to search a column (B1:B19989) that
contains text with the data from a column (A1:A32417) that contains a list of
part numbers and display a result(True/False) into another column (C). Column
B's text has the part numbers mixed in with the text. I need to know which
numbers from column A are found within the text of column B.

This is what I have tried in C1: =VLOOKUP(A1,CATALOG,2)

All I get is #N/A - I know that the value in A1 exists in CATALOG

CATALOG=The name of array B1:B19989

  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

Thanks to Ron and Kostis. These worked with one caveat. Can the formula be
modified so that only exact matches are returned. For example A1 is 602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides


  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Find data in one table from another.

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought to
what you must have and post back with the new rules. That way you can get one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula be
modified so that only exact matches are returned. For example A1 is 602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides


  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Find data in one table from another.

How about

=COUNTIF(CATALOG,A1)0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
Thanks to Ron and Kostis. These worked with one caveat. Can the formula be
modified so that only exact matches are returned. For example A1 is 602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides



  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Find data in one table from another.

Oops! I never read the first post, so B holds other data as well in the same
cell and if so is there any rule where A1 can be, is it first or last or
anywhere?



--
Regards,

Peo Sjoblom

Portland, Oregon




"Peo Sjoblom" wrote in message
...
How about

=COUNTIF(CATALOG,A1)0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
Thanks to Ron and Kostis. These worked with one caveat. Can the formula
be
modified so that only exact matches are returned. For example A1 is 602,
I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides






  #16   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

What I need to know is if the part number in Col_A can or cannot be found in
its exact form within the text of Array CATALOG. I do not want a positive
return if the part number text has anything immediately before or after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678 Yes
FL-975 Green 25-FL-975 No
3K-23G-85 $56.95 3K-23G-85 Plus Yes
WPL-1176 WPL- $1176 No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought to
what you must have and post back with the new rules. That way you can get one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula be
modified so that only exact matches are returned. For example A1 is 602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides


  #17   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

Sorry about Col_C wrapping around.

"micmed" wrote:

What I need to know is if the part number in Col_A can or cannot be found in
its exact form within the text of Array CATALOG. I do not want a positive
return if the part number text has anything immediately before or after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678 Yes
FL-975 Green 25-FL-975 No
3K-23G-85 $56.95 3K-23G-85 Plus Yes
WPL-1176 WPL- $1176 No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought to
what you must have and post back with the new rules. That way you can get one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula be
modified so that only exact matches are returned. For example A1 is 602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides


  #18   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Find data in one table from another.

How about

=(COUNTIF(CATALOG,A1)+COUNTIF(CATALOG,"* "&A1&" *")+COUNTIF(CATALOG,A1&"
*")+COUNTIF(CATALOG,"* "&A1))0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
What I need to know is if the part number in Col_A can or cannot be found
in
its exact form within the text of Array CATALOG. I do not want a positive
return if the part number text has anything immediately before or after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678
Yes
FL-975 Green 25-FL-975
No
3K-23G-85 $56.95 3K-23G-85 Plus Yes
WPL-1176 WPL- $1176
No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought
to
what you must have and post back with the new rules. That way you can get
one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula
be
modified so that only exact matches are returned. For example A1 is
602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG
and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides



  #19   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

Thanks for you effort Peo, but that does not work.
Ron's =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0 is the closest I have
gotten. Is there a way to use the EXACT function together with this?

"Peo Sjoblom" wrote:

How about

=(COUNTIF(CATALOG,A1)+COUNTIF(CATALOG,"* "&A1&" *")+COUNTIF(CATALOG,A1&"
*")+COUNTIF(CATALOG,"* "&A1))0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
What I need to know is if the part number in Col_A can or cannot be found
in
its exact form within the text of Array CATALOG. I do not want a positive
return if the part number text has anything immediately before or after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678
Yes
FL-975 Green 25-FL-975
No
3K-23G-85 $56.95 3K-23G-85 Plus Yes
WPL-1176 WPL- $1176
No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought
to
what you must have and post back with the new rules. That way you can get
one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula
be
modified so that only exact matches are returned. For example A1 is
602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG
and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides




  #20   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Find data in one table from another.

It worked for me using the example you provided, what does not work? Using
your own example I got

FALSE
TRUE
TRUE
FALSE
TRUE



Of course I assumed that CATALOG is a named range and the values are in A,
if not CATALOG is a named range and your parts are in column C replace
CATALOG with

=(COUNTIF(C:C,A1)+COUNTIF(C:C,"* "&A1&" *")+COUNTIF(C:C,A1&"
*")+COUNTIF(C:C,"* "&A1))0

this formula looks for if the value in A is the only value in the lookup
range, it looks if it is part of the range where it is spaces to the left
and to the right, it looks if it starts with it and then space before the
rest and finally if it ends with it with space preceding it

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
Thanks for you effort Peo, but that does not work.
Ron's =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0 is the closest I have
gotten. Is there a way to use the EXACT function together with this?

"Peo Sjoblom" wrote:

How about

=(COUNTIF(CATALOG,A1)+COUNTIF(CATALOG,"* "&A1&" *")+COUNTIF(CATALOG,A1&"
*")+COUNTIF(CATALOG,"* "&A1))0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
What I need to know is if the part number in Col_A can or cannot be
found
in
its exact form within the text of Array CATALOG. I do not want a
positive
return if the part number text has anything immediately before or
after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678
Yes
FL-975 Green 25-FL-975
No
3K-23G-85 $56.95 3K-23G-85 Plus
Yes
WPL-1176 WPL- $1176
No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some
thought
to
what you must have and post back with the new rules. That way you can
get
one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the
formula
be
modified so that only exact matches are returned. For example A1 is
602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula.
The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in
CATALOG
and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides







  #21   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Find data in one table from another.

Try this:
=SUMPRODUCT(--ISNUMBER(SEARCH(" "&$A1&" "," "&CATALOG&" ")))0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks for you effort Peo, but that does not work.
Ron's =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0 is the closest I have
gotten. Is there a way to use the EXACT function together with this?

"Peo Sjoblom" wrote:

How about

=(COUNTIF(CATALOG,A1)+COUNTIF(CATALOG,"* "&A1&" *")+COUNTIF(CATALOG,A1&"
*")+COUNTIF(CATALOG,"* "&A1))0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
What I need to know is if the part number in Col_A can or cannot be found
in
its exact form within the text of Array CATALOG. I do not want a positive
return if the part number text has anything immediately before or after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678
Yes
FL-975 Green 25-FL-975
No
3K-23G-85 $56.95 3K-23G-85 Plus Yes
WPL-1176 WPL- $1176
No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought
to
what you must have and post back with the new rules. That way you can get
one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula
be
modified so that only exact matches are returned. For example A1 is
602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG
and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides




  #22   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Find data in one table from another.

If your part number test must be case-sensitive, meaning that
AB123 does not match Ab123, then use this:

=SUMPRODUCT(--ISNUMBER(FIND(" "&$A1&" "," "&CATALOG&" ")))0

Helping, yet?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--ISNUMBER(SEARCH(" "&$A1&" "," "&CATALOG&" ")))0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks for you effort Peo, but that does not work.
Ron's =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0 is the closest I have
gotten. Is there a way to use the EXACT function together with this?

"Peo Sjoblom" wrote:

How about

=(COUNTIF(CATALOG,A1)+COUNTIF(CATALOG,"* "&A1&" *")+COUNTIF(CATALOG,A1&"
*")+COUNTIF(CATALOG,"* "&A1))0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
What I need to know is if the part number in Col_A can or cannot be found
in
its exact form within the text of Array CATALOG. I do not want a positive
return if the part number text has anything immediately before or after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678
Yes
FL-975 Green 25-FL-975
No
3K-23G-85 $56.95 3K-23G-85 Plus Yes
WPL-1176 WPL- $1176
No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought
to
what you must have and post back with the new rules. That way you can get
one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula
be
modified so that only exact matches are returned. For example A1 is
602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG
and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides




  #23   Report Post  
Posted to microsoft.public.excel.worksheet.functions
micmed
 
Posts: n/a
Default Find data in one table from another.

Ron, you are the man! That did it perfectly. Now I just have to wait for it
to calculate.

"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--ISNUMBER(SEARCH(" "&$A1&" "," "&CATALOG&" ")))0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks for you effort Peo, but that does not work.
Ron's =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0 is the closest I have
gotten. Is there a way to use the EXACT function together with this?

"Peo Sjoblom" wrote:

How about

=(COUNTIF(CATALOG,A1)+COUNTIF(CATALOG,"* "&A1&" *")+COUNTIF(CATALOG,A1&"
*")+COUNTIF(CATALOG,"* "&A1))0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
What I need to know is if the part number in Col_A can or cannot be found
in
its exact form within the text of Array CATALOG. I do not want a positive
return if the part number text has anything immediately before or after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678
Yes
FL-975 Green 25-FL-975
No
3K-23G-85 $56.95 3K-23G-85 Plus Yes
WPL-1176 WPL- $1176
No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought
to
what you must have and post back with the new rules. That way you can get
one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula
be
modified so that only exact matches are returned. For example A1 is
602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG
and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides




  #24   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Find data in one table from another.

Thanks for the feedback...I'm glad that worked for you.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Ron, you are the man! That did it perfectly. Now I just have to wait for it
to calculate.

"Ron Coderre" wrote:

Try this:
=SUMPRODUCT(--ISNUMBER(SEARCH(" "&$A1&" "," "&CATALOG&" ")))0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks for you effort Peo, but that does not work.
Ron's =SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0 is the closest I have
gotten. Is there a way to use the EXACT function together with this?

"Peo Sjoblom" wrote:

How about

=(COUNTIF(CATALOG,A1)+COUNTIF(CATALOG,"* "&A1&" *")+COUNTIF(CATALOG,A1&"
*")+COUNTIF(CATALOG,"* "&A1))0

--
Regards,

Peo Sjoblom

Portland, Oregon




"micmed" wrote in message
...
What I need to know is if the part number in Col_A can or cannot be found
in
its exact form within the text of Array CATALOG. I do not want a positive
return if the part number text has anything immediately before or after.

Col_A CATALOG
Col_C
602 $602.35
No
456-T 456-T .......$25/ft
Yes
34-5678 Blue Arc Cover 34-5678
Yes
FL-975 Green 25-FL-975
No
3K-23G-85 $56.95 3K-23G-85 Plus Yes
WPL-1176 WPL- $1176
No

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))0
gives me every match regardless if it is exact or not.

I have 30K line items to search. This will really help me a lot.
Thanks,


"Ron Coderre" wrote:

While it may be possible to delineate ALL of the rules regarding part
numbers, I suspect it may not be practical. Is what you already have
acceptable or do you need to trap the most common patterns or negative
indicators (no leading $, etc)? If you want the latter, give some thought
to
what you must have and post back with the new rules. That way you can get
one
comprehensive solution.

***********
Regards,
Ron

XL2002, WinXP-Pro


"micmed" wrote:

Thanks to Ron and Kostis. These worked with one caveat. Can the formula
be
modified so that only exact matches are returned. For example A1 is
602, I
want it only to search for 602 and not $602.35 or CR602-12 etc.



"vezerid" wrote:

I think the solution is in a minor modification of Ron's formula. The
suggested formula

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))=1

returns TRUE only if the code in A1 appears exactly once in CATALOG
and
I suspect this is not the case. I suggest you modify to:

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,CATALOG)))<0

HTH
Kostis Vezerides




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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
1-variable Data Table dependent on MS Query fails to update correctly [email protected] Excel Discussion (Misc queries) 0 March 30th 05 07:43 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
changing proportion of chart and data table Dawn Parks Charts and Charting in Excel 3 January 6th 05 01:18 AM


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