Reverse Find Assistance

rex759

Well-known Member
Joined
Nov 8, 2004
Messages
608
Office Version
  1. 365
Platform
  1. Windows
Hello,
I feel like I am close but can't put it all together. I want to extract text positioned from the 3rd space from the right to the next space.

Example,
N/A 1000qz0000 Az00-Wztt Remote 9-op/ 1,129.00 0 ____ would produce 1,129.00.

I broke down the sections to get the position of the spacing and thought I could combine them but that didn't work.
Find characters in a string.xlsx
ABCDE
1MIDBeginningEndingSubstituteNum of Char
21,129.00539N/A 1000qz0000 Az00-Wztt Remote 9-op/*1,129.00 0 ____34
3
4N/A 1000qz0000 Az00-Wztt Remote 9-op/ 1,129.00 0 ____
Sheet4
Cell Formulas
RangeFormula
A2A2=MID(A4,39,8)
B2B2=LEN(A4)-LEN(SUBSTITUTE(A4," ",""))-2
C2C2=FIND("*",D2,1)+1
D2D2=SUBSTITUTE(A4," ","*",LEN(A4)-LEN(SUBSTITUTE(A4," ",""))-2)
E2E2=C2-B2


Any help is appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi,

B1 formula results Text
C1 formula converts result to Real number for further math:

Book3.xlsx
ABC
1N/A 1000qz0000 Az00-Wztt Remote 9-op/ 1,129.00 0 ____1,129.001129
Sheet1026
Cell Formulas
RangeFormula
B1B1=TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),300),100))
C1C1=LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),300),100)+0
 
Upvote 0
Solution
Wow, I have to read up more on the "REPT" function. You solution looks much cleaner than the route I was taking. Works perfectly. Thank you.
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

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