Trouble with Wild Cards

Joe Stephens

New Member
Joined
Jul 22, 2016
Messages
4
Hello all -

Here's where I am stuck:
When the word 'NEW" appears at any place in a row, I want to retrieve the part number located a single space away, i.e., USE 467.209 returns 467.209.
And there are instances where additional text follows the number (USE 55-1235OE,2 LEAF AIR BEAM L/H 1/SB/1) - which is not wanted.
The formula does not work consistently and it appears the issue is Excel is not distinguishing the difference between "USE" and "FUSE" (returning undesirable results) even when inserting the wild card * ("*USE") in the following formula:
=IF(ISNUMBER(SEARCH("*USE",B3400)-1),TRIM(RIGHT(SUBSTITUTE(B3400," ",REPT(" ",LEN(B3400))),LEN(B3400))),"").

Any thoughts?

:confused:

Thanx!

Joe
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
As far as the problem with USE and FUSE, instead of the wild card, put a space before and after USE - " USE ". You will also need to add a space before and after the 2nd argument in the SEARCH function.
See examples below.
Hopefully someone else can help with your second issue.
Excel Workbook
AB
1USE 467.209467.209
2FUSE 467.209 
Sheet
 
Upvote 0
As far as the problem with USE and FUSE, instead of the wild card, put a space before and after USE - " USE ". You will also need to add a space before and after the 2nd argument in the SEARCH function.
See examples below.
Hopefully someone else can help with your second issue.

*AB
1USE 467.209467.209
2FUSE 467.209*

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:273px;"><col style="width:83px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B1=IF(ISNUMBER(SEARCH(" USE "," "&A1&" ")-1),TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN(A1))),"")
B2=IF(ISNUMBER(SEARCH(" USE "," "&A2&" ")-1),TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",LEN(A2))),LEN(A2))),"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4



Thanx for your prompt response to this request! As it turns out there are additional issues with the data - and this really helps to identify them, i.e., -NEW, "NEW ", etc.
Hopefully, someone will respond with a solution to the following text.

Joe
 
Upvote 0

Forum statistics

Threads
1,215,479
Messages
6,125,041
Members
449,206
Latest member
Healthydogs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top