Extract only currency value from a string

78459430

New Member
Joined
Apr 1, 2022
Messages
20
Office Version
  1. 365
  2. 2021
Platform
  1. MacOS
$10,000 received on 10/10/2023
$500 received on 10/10/2023Total received on 10/10/2023 is $10,500
$1,500 received on 11/10/2023
$1,000 received on 11/10/2023Total received on 11/10/2023 is $2,500
$50 received on 12/10/2024
$150 received on 12/10/2024Total received on 12/10/2024 is $200
$500 received on 15/10/2024
$200 received on 15/10/2024Total received on 15/10/2024 is $700

Hi,
I would need the formulas on column B to read the exact date and SUM only the currency value ($xxxxxxx) shown on column A.
Please help :)

Thank you!
 
I would recommend against typing the date in the formula & suggest putting it in cell then using the formula to reference that cell as shown in B2:C3 below.
If you really must type it in the formula I have given an example in cell C5.

If this is still not what you want please post new sample data with the exact result(s) that you want (preferably with XL2BB ) and explain again in relation to that specific sample data.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)

25 03 26.xlsm
ABC
1DataDateResult
2$10,000 received on 10/10/202311/10/2023Total received on 11/10/2023 is $2,500
3$500 received on 10/10/20235/10/2023Total received on 5/10/2023 is $0
4$1,500 received on 11/10/2023
5$1,000 received on 11/10/2023Total received on 10/10/2023 is $10,500
6$50 received on 12/10/2024
7$150 received on 12/10/2024
8$500 received on 15/10/2024
9$200 received on 15/10/2024
Sum by date (3)
Cell Formulas
RangeFormula
C2:C3C2=LET(d,TEXT(B2,"d/mm/yyyy"),"Total received on "&d&" is "&TEXT(SUM(--FILTER(TEXTBEFORE(A$2:A$9," "),TEXTAFTER(A$2:A$9," ",-1)=d,0)),"$#,##0"))
C5C5=LET(d,"10/10/2023","Total received on "&d&" is "&TEXT(SUM(--FILTER(TEXTBEFORE(A$2:A$9," "),TEXTAFTER(A$2:A$9," ",-1)=d,0)),"$#,##0"))
This works!!! but I have one last question: the dates are between round brackets, so the last character is a round bracket.

$10,000 received on (10/10/2023)Result
$500 received on (10/10/2023)Total received on 10/10/2023 is $10,500
$1,500 received on (11/10/2023)
$1,000 received on (11/10/2023)
$50 received on (12/10/2024)
$150 received on (12/10/2024)
$500 received on (15/10/2024)
$200 received on (15/10/2024)

Thanks.
 
Upvote 0
78459430.xlsm
AB
1DataResult
2$10,000 received on (10/10/2023)Total received on 10/10/2023 is $10,500
3$500 received on (10/10/2023)
4$1,500 received on (11/10/2023)
5$1,000 received on (11/10/2023)
6$50 received on (12/10/2024)
7$150 received on (12/10/2024)
8$500 received on (15/10/2024)
9$200 received on (15/10/2024)
Sum by date (4)
Cell Formulas
RangeFormula
B2B2=LET(d,"10/10/2023","Total received on "&d&" is "&TEXT(SUM(--FILTER(TEXTBEFORE(A$2:A$9," "),TEXTAFTER(A$2:A$9,"(",-1)=d&")",0)),"$#,##0"))
 
Upvote 0
Solution

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