Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Corey
 
Posts: n/a
Default Criteria search function

Okay, I have a bit of a complicated task...let's see if I can write it out
clearly. I have a report with many model numbers that I receive quarterly
from a third party. Our internal database has a reference to the model
numbers with corresponding part numbers associated with them. I would like to
edit the third party report to search for the model numbers on my list and
return the corresponding part number that goes with it. Tricky thing is,
they're not identical in identifying the part. For example:

Third Party Report:
Model # = ABC-15SP2/DA

Internal Database:
Column A Column B
Part # Model #
TDDCA504 ABC-14SP2, -15SP2, -16SP2

Some jokester thought they'd save time by putting the comma in on our
database and for the reader to assume ABC goes in front of it. The database
is huge and I would not attempt to put each model # in their own row and add
the ABC in front of all them (even by formula manipulation). In this example,
I'm looking for ABC-15SP2. Good news is that there will never be another
entry with '15SP2' in the list. So, is there a formula I could write that
would search for just this criteria and return the value in Column A (Part
#)? Perhaps a formula that would search for four or five consecutive
characters that match. Any help is much appreciated. Thanks!

Corey


  #2   Report Post  
Domenic
 
Posts: n/a
Default

Provided that the format for the model numbers from the third party
report is consistent, try the following formula that needs to be
confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

=INDEX(A1:A10,MATCH(1,(ISNUMBER(SEARCH(LEFT(D1,3), B1:B10)))*(ISNUMBER(SEA
RCH(MID(D1,5,5),B1:B10))),0))

....where D1 contains the model number of interest, such as ABC-15SP2/DA.

Hope this helps!

In article ,
"Corey" wrote:

Okay, I have a bit of a complicated task...let's see if I can write it out
clearly. I have a report with many model numbers that I receive quarterly
from a third party. Our internal database has a reference to the model
numbers with corresponding part numbers associated with them. I would like to
edit the third party report to search for the model numbers on my list and
return the corresponding part number that goes with it. Tricky thing is,
they're not identical in identifying the part. For example:

Third Party Report:
Model # = ABC-15SP2/DA

Internal Database:
Column A Column B
Part # Model #
TDDCA504 ABC-14SP2, -15SP2, -16SP2

Some jokester thought they'd save time by putting the comma in on our
database and for the reader to assume ABC goes in front of it. The database
is huge and I would not attempt to put each model # in their own row and add
the ABC in front of all them (even by formula manipulation). In this example,
I'm looking for ABC-15SP2. Good news is that there will never be another
entry with '15SP2' in the list. So, is there a formula I could write that
would search for just this criteria and return the value in Column A (Part
#)? Perhaps a formula that would search for four or five consecutive
characters that match. Any help is much appreciated. Thanks!

Corey

  #3   Report Post  
Domenic
 
Posts: n/a
Default

Or maybe...

=INDEX(A1:A10,MATCH(1,(LEFT(B1:B10,3)=LEFT(D1,3))* (ISNUMBER(SEARCH(MID(D1
,5,5),B1:B10))),0))

....confirmed with CONTROL+SHIFT+ENTER.

In article ,
Domenic wrote:

Provided that the format for the model numbers from the third party
report is consistent, try the following formula that needs to be
confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

=INDEX(A1:A10,MATCH(1,(ISNUMBER(SEARCH(LEFT(D1,3), B1:B10)))*(ISNUMBER(SEA
RCH(MID(D1,5,5),B1:B10))),0))

...where D1 contains the model number of interest, such as ABC-15SP2/DA.

Hope this helps!

In article ,
"Corey" wrote:

Okay, I have a bit of a complicated task...let's see if I can write it out
clearly. I have a report with many model numbers that I receive quarterly
from a third party. Our internal database has a reference to the model
numbers with corresponding part numbers associated with them. I would like
to
edit the third party report to search for the model numbers on my list and
return the corresponding part number that goes with it. Tricky thing is,
they're not identical in identifying the part. For example:

Third Party Report:
Model # = ABC-15SP2/DA

Internal Database:
Column A Column B
Part # Model #
TDDCA504 ABC-14SP2, -15SP2, -16SP2

Some jokester thought they'd save time by putting the comma in on our
database and for the reader to assume ABC goes in front of it. The database
is huge and I would not attempt to put each model # in their own row and
add
the ABC in front of all them (even by formula manipulation). In this
example,
I'm looking for ABC-15SP2. Good news is that there will never be another
entry with '15SP2' in the list. So, is there a formula I could write that
would search for just this criteria and return the value in Column A (Part
#)? Perhaps a formula that would search for four or five consecutive
characters that match. Any help is much appreciated. Thanks!

Corey

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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
FAQ Spreadsheet with search function murphyz Excel Discussion (Misc queries) 0 March 19th 05 09:24 PM
how do I search by more than one criteria in excel? vulcan88 Excel Worksheet Functions 2 March 15th 05 09:18 PM


All times are GMT +1. The time now is 12:18 AM.

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"