HI Everyone,
I'm in need of some help. I have to figure out a formula that can identify if a cell contains a string of text based on a list of prefixes found in another tab and then have the ability to populate a result from a corresponding cell found in the list tab. So to clarify, I will have two tabs. The first tab or data tab will contain a column of model numbers and various other data we need not be concerned with. The 2nd tab will have a list of of prefixes for the various model numbers with a corresponding price list associated with it. Basically, what I have to do is look at a model number found in the data tab, go into the price list tab and identify if that model number starts with the prefixes provided and if it does fill in the corresponding price list associated with that prefix. I have been playing with the below formula which uses the prefixes found in the price list tab and searches a cells string of text to identify if the cell contains the prefix. Right now it populates a true/false. If the value is true then I want to return the name of the price list associated with that prefix. One other issue I have is that some prefixes contain very similar detail. For instance, one of the prefixes I am identifying in WM and another is WMT. Now if I were to manually compare this to a model number found in the data tab I could easily identify if a model number begins with just a WM or if it has WMT. Right now the formula below will identify with WM and WMT. I hope I explained is correctly but just to be certain I included an attached example of what I am trying to do. I have to do this for thousands of lines of data so I hope we can figure out a solution. Thanks!
=SUMPRODUCT(--ISNUMBER(SEARCH(Prefix,N3)))>0
Bookmarks