Sum cells that contain numbers and text

Manexcel

Board Regular
Joined
Dec 28, 2015
Messages
128
Office Version
  1. 365
Platform
  1. Windows
I am using Windows 10 with Excel 2019.

I am looking for a formula that will =sum the numbers in cells A12 and A17 - see below. Both contain text and numerical numbers.
Group 1 and Group 2 will have different text and length of text / words
i.e. GroupA could be just one word but GroupB could be 3 or 4 or 5 or 6 words with varying number of chars in each word


If you can assist it would be greatly appreciated and I thank you for your time and consideration.

Sum of cells that contain text and numbers v0.1.xlsx
ABCDEFGHI
1I am using Windows 10 and Excel 2019
2
3I am looking for a formula that will =sum the numbers in cells A12 and A17. Both contain text and calculated numbers.
4GroupA and GroupB are titles and will have different text, number of words and each word word has varying length in chars
5i.e. GroupA could be just one word but GroupB could be 3 or 4 or 5 or 6 words with varying number of chars in each word
6
7
8Use Case
9
10Proposed Attendees:sum of A12 and a17 which should be 19
11
12GroupA (3)
13Name 1Position 1
14Name 2Position 2
15Name 3Position 3
16
17GroupB aaa bbbb ccccc dddddd eeeeeeeee (16)
18Title 1First Name 4Last name 41980title 10first name 13last name 132010
19Title 2First Name 5Last name 51986title 11first name 14last name 142013
20Title 3First Name 6Last name 61987title 12first name 15last name 152014
21Title 4First Name 7Last name 71998title 13first name 16last name 162015
22Title 5First Name 8Last name 82001title 14first name 17last name 172016
23Title 6First Name 9Last name 92004title 15first name 18last name 182017
24Title 7First Name 10Last name 102005title 16first name 19last name 192018
25Title 8First Name 11Last name 112007
26Title 9First Name 12Last name 122009
27
Sheet1
Cell Formulas
RangeFormula
A12A12="GroupA ("&COUNTA(A13:A15)&")"
A17A17="GroupB aaa bbbb ccccc dddddd eeeeeeeee (" &COUNTA(C18:C26,G18:G26)&")"
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
@Manexcel Maybe ?

Excel Formula:
=RIGHT(SUBSTITUTE(SUBSTITUTE(A12,"(","     "),")",""),5)+RIGHT(SUBSTITUTE(SUBSTITUTE(A17,"(","     "),")",""),5)
 
Last edited:
Upvote 0
.. or possibly this?
Excel Formula:
=SUBSTITUTE(REPLACE(A12,1,FIND("(",A12),""),")","")+SUBSTITUTE(REPLACE(A17,1,FIND("(",A17),""),")","")
 
Upvote 0
.. or possibly this?
Excel Formula:
=SUBSTITUTE(REPLACE(A12,1,FIND("(",A12),""),")","")+SUBSTITUTE(REPLACE(A17,1,FIND("(",A17),""),")","")
Thank you very much for the very quick response. It works perfectly. A big thank you.
 
Upvote 0
You're welcome. Glad we could help. :)

If the number in parentheses is always at the end and less than 10 digits, then this is a bit shorter again.
Excel Formula:
=MID(SUBSTITUTE(A12,")",""),FIND("(",A12)+1,9)+MID(SUBSTITUTE(A17,")",""),FIND("(",A17)+1,9)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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