Sum columns when is number

ABC3132

Board Regular
Joined
Nov 7, 2017
Messages
50
Office Version
  1. 2019
Platform
  1. Windows
Hello.
I want to sum figures only when they are numbers, not dates or text.
Thanks in advance
EG:

Total18
JanuaryNONE
February6
March12
April>From 15/4/24
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Note that the SUM function automatically ignores text.
Regarding dates, it depends on how they are entered into Excel.
Valid date entries in Excel REALLY are just numbers with special date formats applied (dates are stored in Excel as the number of days since 1/0/1900).
So any valid dates would be included in the SUM, but if they are entered as Text, they will not be.

In your example, since April has the word "From" in it, it is a text entry, so would not be picked up by the SUM function.
So the SUM function would return exactly 18 on your sample data.
 
Upvote 0
Solution
Note that the SUM function automatically ignores text.
Regarding dates, it depends on how they are entered into Excel.
Valid date entries in Excel REALLY are just numbers with special date formats applied (dates are stored in Excel as the number of days since 1/0/1900).
So any valid dates would be included in the SUM, but if they are entered as Text, they will not be.

In your example, since April has the word "From" in it, it is a text entry, so would not be picked up by the SUM function.
So the SUM function would return exactly 18 on your sample data.
Thanks Joe4. You are right
 
Upvote 0

Forum statistics

Threads
1,216,085
Messages
6,128,732
Members
449,465
Latest member
TAKLAM

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