Summing of numbers with text.

Newbienew

Active Member
Joined
Mar 17, 2017
Messages
395
Office Version
  1. 2016
Platform
  1. Windows
Great day experts,

The current issue that I have is that I am trying to sum up a row of numbers, but within the row, some cells have a number in front of this text (1 WTH), as seen below for clarity. I would like to sum up all numbers to include the number in front of the text, as will. The formula I used, I thought I assumed it would work, but I got 22 instead of 27. What formulation would I use to achieve this goal? Thank you

Book1
ABCDEFGHIJ
2222347 (1wth)13214
Sheet1
Cell Formulas
RangeFormula
A2A2=LEFT(B2:J2,1)+SUM(B2:J2)
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Are all of your numbers always 1 digit? If so then try this:

$scratch.xlsm
ABCDEFGHIJ
2272347 (1wth)13214
Sum with text
Cell Formulas
RangeFormula
A2A2=SUM(VALUE(LEFT(B2:J2,1)))
 
Upvote 0
Another option if you can numbers greater than 9
Excel Formula:
=SUMPRODUCT(--(LEFT(B2:J2,FIND(" ",B2:J2&" "))))
 
Upvote 0
@6StringJazzer I did not think of nor have I encountered anything past a single digit. I am still consolidating data. I appreciate your help.
@Fluff Thank you for the alternative in the event of having more than just single digits.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,112
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