Sum Non-contiguous Cells & Exclude Text

tjd59

New Member
Joined
Nov 21, 2008
Messages
9
I'm using Excel 2010 and am looking for some help to sum non-contiguous cells that have numbers and text in them. For example, I have "17 days" in cell B27, "66 days" in B31, "94 days" in B50 and so on. I would like to sum the numbers and ignore the text. Any help would be appreciated. Thanks!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Maybe:


Book1
A
117 days
2
3
466 days
5
6
7
894 days
9
10
11
12177
Sheet1
Cell Formulas
RangeFormula
A12{=SUM(LEFT(A1,2)+0,LEFT(A4,2)+0,LEFT(A8,2+0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi.

Can you be a bit clearer?

For example, are these cells' contents always of the precise form "# days", where # is some integer?

And re the non-contiguous cells, are some of the cells in between those containing the desired extractions also of this format, so that any solution which attempted a blanket approach over the larger, contiguous range would potentially lead to overcounting?

Regards
 
Upvote 0
Quick question. How does Excel read (+0) in the formula {=SUM(LEFT(A1,2)+0,LEFT(A4,2)+0,LEFT(A8,2+0))} ? When are these used when writing formulas?

Also, why are two of them outside and the last one inside when using the left formula?
 
Upvote 0
drangel, West Man's formula is actually better than mine since you don't have to use CTRL+SHIFT+ENTER( not an array formula)
Due to my formula:
Also, why are two of them outside and the last one inside when using the left formula?
My mistake, you could put the +0 inside or outside the )

The +0 is used when you do a formula that returns text the +0 turns text into a number...
 
Upvote 0

Forum statistics

Threads
1,215,501
Messages
6,125,169
Members
449,212
Latest member
kenmaldonado

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