Substitute and Trim Issue

Coopergers

New Member
Joined
Jul 7, 2017
Messages
1
Hi,

I am currently trying to pick out our order numbers beginning 'RVW0' from cells with long strings of text.

I have succeeded so far... however! Some idiot has been using underscores and now they're messing up my sheets! I need my formula to ignore everything either side of the order number as well as underscores now.

Please see my current formula and let me know how I can include the removal of underscores and words after it.

=TRIM(MID(SUBSTITUTE(Transactions!Q1," ",REPT(" ",99)),MAX(1,FIND("RVW0",SUBSTITUTE(Transactions!Q1," ",REPT(" ",99)))-50),99))

I'm giving myself a migraine trying to figure it out myself. But I know it won't be anything harder than the formula I currently have ?

Please help!

Joe Coops
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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