Count every day

GSB22

New Member
Joined
Jan 30, 2009
Messages
5
Hello,
There's got to be an easy formula for counting every day, starting on one date and ending another. For instance, if I want to count every day from 1/1/2009 to 31/1/2009, I'm expecting an answer of 31. But when you do a simple subtraction or Datedif() formula, I get 30.

So simply what I'm looking for is:
A1: 1/1/2009
A2: 31/1/2009
A3: 31 (not 30)

Any help will be appreciated.

Thanks!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi and welcome to the board!!

31-1 does equal 30. That is the correct answer If you want 31, you need to add 1 to your formula
Code:
=DATEDIF(A2,A1)+1

lenze
 
Upvote 0
Ha! Because that would be too easy. I just assumed Excel would have a formula. Maybe they should add a Daysactual formula. But you are correct. That will work too.

Thanks!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,894
Messages
6,122,124
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