Formula is including dates when adding row

easybpw

Active Member
Joined
Sep 30, 2003
Messages
408
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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,910
Office Version
  1. 365
Platform
  1. Windows
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]
 

easybpw

Active Member
Joined
Sep 30, 2003
Messages
408
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Thanks for the information. I didn't realize that.
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,910
Office Version
  1. 365
Platform
  1. Windows
You are welcome!:)
 

Watch MrExcel Video

Forum statistics

Threads
1,129,315
Messages
5,635,512
Members
416,862
Latest member
MGDlite

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
Top