Highlight Dollar Amounts

Justinian

Well-known Member
Joined
Aug 9, 2009
Messages
1,557
Office Version
  1. 365
Platform
  1. Windows
I have a list of work order comments in range H2:H1150. In each cell is a comment like this:

"1/8/10 Employee at work-----refer to doctor----$750 cap per listing."

I am trying to extract just the dollar amounts from these cells so I can total them in column I but am having a hard time. I tried conditional formatting to highlight the cells that contain dollar amounts but cannot get that to work either.

Any ideas?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
If there is always a $ sign, then maybe:


Book1
AB
11/8/10 Employee at work-----refer to doctor----$750 cap per listing.750
Sheet14
Cell Formulas
RangeFormula
B1=LEFT(SUBSTITUTE(MID(A1,FIND("$",A1)+1,LEN(A1))," ",REPT(" ",10)),10)+0
 
Upvote 0
If there is always a $ sign, then maybe:
Worksheet Formulas
CellFormula
B1=LEFT(SUBSTITUTE(MID(A1,FIND("$",A1)+1,LEN(A1))," ",REPT(" ",10)),10)+0

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
A little shorter, one less function call...

=0+MID(LEFT(A1,FIND(" ",A1,FIND("$",A1))),FIND("$",A1)+1,99)
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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