Dynamic array to pull dollar amounts

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,168
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have this string in A1
I have $3000 dollars and Jim collected $65.03 dollars. Gina went to the Casino and lost $875.78 and Joe's vacation cost him $9876.54. There were 111 cars on site.

I am looking to pull only the dollar amounts. so far I have
VBA Code:
=TOCOL(IF(LEFT(MID(A1,SEQUENCE(LEN(A1)),8),1)="$",MID(A1,SEQUENCE(LEN(A1)),8),1/0),3)

But I am missing num_char, any help would be appreciated.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I didn't see your expected results, so how about this one:
工作簿1
ABCDEF
1I have $3000 dollars and Jim collected $65.03 dollars. Gina went to the Casino and lost $875.78 and Joe's vacation cost him $9876.54. There were 111 cars on site.
2
33000
465.03
5875.78
69876.54
7
8
Sheet1
Cell Formulas
RangeFormula
B3:B6B3=DROP(TAKE(TEXTSPLIT(A1&" ",{". "," "},"$"),,1),1)
Dynamic array formulas.
 
Upvote 0

shaowu459 that will do it! Thank you so much! That is exactly what I needed!

 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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