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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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:
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B1[/TH]
[TD="align: left"]=LEFT(SUBSTITUTE(MID(A1,FIND("$",A1)+1,LEN(A1))," ",REPT(" ",10)),10)+0[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
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,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

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