Formula is including dates when adding row

easybpw

Active Member
Joined
Sep 30, 2003
Messages
437
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hello,

Thanks in advance for your help. I have a formula that is including dates when it sums toe row. For example if the formula is =sum($a2:$z2) and in column n2 is a date the formula is including that in the results which then increases my result. In my example, without the date the result should be $15,450 but if I include a date in n2 (7/27/18) it changes my result to $58,758. N2 is formatted as a date. How do I eliminate the date in n2 from the result without having to change the formula to be =sum($a2:$m2)+sum($o2:$z2)?

Thanks!

Bill
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
It is important to understand how Excel stores dates in Excel. They are really just numbers with Custom Formats.
Excel stores dates as the number of days since 1/0/1900, and time is a fraction of one day (if you convert any valid date entry to the General or Number format, you can see this easily).
Formulas in Excel do not care about the formatting, only the underlying value. Since dates are numbers, they will be picked up in SUM formulas.

By the way, you could simply use:
Code:
[COLOR=#333333]=sum($a2:$z2) - $n2[/COLOR]
 
Upvote 0
Thanks for the information. I didn't realize that.
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,105
Members
449,066
Latest member
Andyg666

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