Extract Number Formula Needed

Dastnai

New Member
Joined
Oct 26, 2018
Messages
45
Hi Everyone,

I am looking for a formula to extract the amount for each of these cells. Any help would be greatly appreciated.

Sample:
[TABLE="width: 396"]
<colgroup><col></colgroup><tbody>[TR]
[TD]UNIVERSAL 1420449 WASHABAUGH $55 11/21/2018[/TD]
[/TR]
[TR]
[TD]UNIVERSAL 1420449 WASHABAUGH $76 11/21/2018[/TD]
[/TR]
[TR]
[TD]UNIVERSAL 1420450 WASHABAUGH $55 11/21/2018[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 396"]
<tbody>[TR]
[TD="width: 396"]UNIVERSAL 1420450 WASHABAUGH $76 11/21/2018[/TD]
[/TR]
</tbody>[/TABLE]


Desired outcome:
$55
$76
$55
$76


Regards,

Dastnai
 

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.
Hi Dastnai,

Based on your posted examples, this will do the job (change just the cell reference to suit):

=VALUE(MID(A1,30,4))

Regards,

Robert
 
Upvote 0
If all your entries are not the same length, then this should do what you want:
Code:
=TRIM(LEFT(SUBSTITUTE(MID(A1,FIND("$",A1),10)," ",REPT(" ",100)),100))
 
Upvote 0
Yes I should have specified that in my request. They were not the same length. This works to perfection. Thank you.
 
Upvote 0
Yes I should have specified that in my request. They were not the same length. This works to perfection. Thank you.
Here is another formula (slightly shorter, one less function call) that you can also consider (it assumes your dollar value is always the second "field" from the right as all of your examples show)...

=TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),200),100))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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