SUM numbers on cells containing specific text.

78459430

New Member
Joined
Apr 1, 2022
Messages
15
Office Version
  1. 365
  2. 2021
Platform
  1. MacOS
Hello,

I am trying to SUM only the value (in USD) of a cell that also contains a specific text. Please help, I ran out of ideas :)
Here below a screen-shot of my cells.
 

Attachments

  • Screen Shot 2022-04-01 at 17.43.25.jpg
    Screen Shot 2022-04-01 at 17.43.25.jpg
    94.5 KB · Views: 36

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hello @Peter_SSs I have just noticed (after the last updated on MacOs, Excel version 16.67 - 22111300) that the formula results in a #VALUE error, see attachment. Not sure what happened. Please help :)

Thank you!

Screenshot 2022-11-25 at 11.44.25.jpg
Screenshot 2022-11-25 at 11.47.21.jpg
 
Upvote 0
I don't recognise that formula from above and we cannot see the row/column labels in that picture or if anything is actually (hidden) in the cells that appear blank. What happened to XL2BB??
However, from what I can actually see, the formula appears to be working for me. Is this what it should be doing?

22 11 25.xlsm
U
84$5,000 (wire on 10/25/2022)
85
86
87
8817709.14
8912709.14
Test
Cell Formulas
RangeFormula
U89U89=U88-(SUM(--TRIM(IFERROR(LEFT(U84:U87,FIND("(",U84:U87)-1),0))))
 
Upvote 0
I don't recognise that formula from above and we cannot see the row/column labels in that picture or if anything is actually (hidden) in the cells that appear blank. What happened to XL2BB??
However, from what I can actually see, the formula appears to be working for me. Is this what it should be doing?

22 11 25.xlsm
U
84$5,000 (wire on 10/25/2022)
85
86
87
8817709.14
8912709.14
Test
Cell Formulas
RangeFormula
U89U89=U88-(SUM(--TRIM(IFERROR(LEFT(U84:U87,FIND("(",U84:U87)-1),0))))
Thank you. But it looks like my Excel does not accept it... see screen-shot... very strange!

Screenshot 2022-11-25 at 15.56.52.jpg


But without the $ symbol, it works

Screenshot 2022-11-25 at 15.57.00.jpg
 
Upvote 0
Can't investigate from a picture. What happened to XL2BB?

What happens with something like this?
Excel Formula:
=U88-(SUM(--TRIM(IFERROR(SUBSTITUTE(LEFT(U84:U87,FIND("(",U84:U87)-1),"$",""),0))))
 
Upvote 0
Can't investigate from a picture. What happened to XL2BB?

What happens with something like this?
Excel Formula:
=U88-(SUM(--TRIM(IFERROR(SUBSTITUTE(LEFT(U84:U87,FIND("(",U84:U87)-1),"$",""),0))))
This works!
I have also noted that the original formula results in the #VALUE! error only on a Mac with the latest MacOS Ventura. With MacOS Big Sur the formula works.
 
Upvote 0
Glad you got it working. Thanks for letting us know.
 
Upvote 0
Thanks for he XL2BB sample. See if this could work for you.

22 04 02.xlsm
AB
1Extras8000
2$980 (check 5/1/2019)
3$1,585 (check 8/1/2019)
4$2,000 (check 12/1/2020)
5$50,588 (check 4/1/2021)
6Extras2000
7$189,845 (check 2/1/2022)
8$15 (check 2/11/2022)
9
10Result
1120192,565
1220202,000
13202150,588
142022189,860
1520230
Sum
Cell Formulas
RangeFormula
B11:B15B11=LET(f,FILTER(B1:B8,RIGHT(B1:B8,6)="/"&A11&")","0 "),SUM(LEFT(f,FIND(" ",f))+0))
Hello @Peter_SSs, this formula also does not work... in MacOs Ventura the result is #VALUE!... do you thing there is an alternative?
 
Upvote 0
this formula also does not work... in MacOs Ventura the result is #VALUE!
I don't know what Mac OS Ventura is and I do not use a Mac so I'm not sure that I can offer anything.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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