Extracting data from within a formula ?

wisemank

Board Regular
Joined
Jun 21, 2010
Messages
129
Here is a sample of an equation with text embedded. I want to extract and string with comma separation between all "" marks... Example from below would be: Drum in Hat Park Brake, Rear Rotor, DRW Rear Hub...etc. (THOUGHTS???)
=1300000+N("Drum in Hat Park Brake")+300000+N(" Rear Rotor")+300000+N("DRW Rear Hub")+200000+N("Wheel Speed Sensor")+50000+N("Park Brake Cable")+400000+N("Rear Brake Hose / Tubes")+500000+N("Rear Caliper Anchor Brakt")+300000+N("Frt Extender")+N("All Investment to achieve capability to 46k")
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
This isn't pretty and might not work, but might give someone a direction to go.
If you put a ' in front of your formula, it will turn it to text '=1300000+N("Drum....
Let's say that is in cell A1
Then in A2 you put
=FIND("+N",A1)
In B2 you put =RIGHT(A1,LEN(A1)-A2-3)
You copy those down until you get to the end, then you do a left() using each of those and use a find(" to determine how many spaces you need.
Like I said, not pretty. Hopefully someone can come up with something better. :)This isn't pretty and might not work, but might give someone a direction to go.
If you put a ' in front of your formula, it will turn it to text '=1300000+N("Drum....
Let's say that is in cell A1
Then in A2 you put
=FIND("+N",A1)
In B2 you put =RIGHT(A1,LEN(A1)-A2-3)
You copy those down until you get to the end, then you do a left() using each of those and use a find(" to determine how many spaces you need.
Like I said, not pretty. Hopefully someone can come up with something better. :)
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,842
Members
449,471
Latest member
lachbee

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