Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Counting calendar days

When I count calendar days, using =VALUE(B2-A2) or even just =(B2-A2), it
always omits one day. For instance 28/09/2009 to 30/09/2009 the formula
counts it as 2 days, while actually it's 3 days (28-29-30). How can I correct
this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Counting calendar days

Hi,

I'm not sure I agree with your reasoning but if that's what you want then
you'll have to do the subtraction and add 1 back

=B2-A2+1

Mike


"musha-bsuha" wrote:

When I count calendar days, using =VALUE(B2-A2) or even just =(B2-A2), it
always omits one day. For instance 28/09/2009 to 30/09/2009 the formula
counts it as 2 days, while actually it's 3 days (28-29-30). How can I correct
this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Counting calendar days

Use this:

=B2-A2+1

if you want to treat both dates as inclusive.

Hope this helps.

Pete

On Dec 3, 10:44*am, musha-bsuha
wrote:
When I count calendar days, using =VALUE(B2-A2) or even just =(B2-A2), it
always omits one day. For instance 28/09/2009 to 30/09/2009 the formula
counts it as 2 days, while actually it's 3 days (28-29-30). How can I correct
this?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Counting calendar days

Excel is, of course, correct, in that 30-28 =2, rather than 3.
If you want 3 instead of 2, the Excel method of adding one is to use +1.
Hence =B2-A2+1
--
David Biddulph

"musha-bsuha" wrote in message
...
When I count calendar days, using =VALUE(B2-A2) or even just =(B2-A2), it
always omits one day. For instance 28/09/2009 to 30/09/2009 the formula
counts it as 2 days, while actually it's 3 days (28-29-30). How can I
correct
this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting calendar Days - not including Sundays KenCanuck Excel Discussion (Misc queries) 3 April 28th 09 05:46 PM
Is there a formular for calendar days Abi Excel Discussion (Misc queries) 2 September 8th 08 04:43 PM
Calendar days D Excel Worksheet Functions 1 March 1st 07 08:24 AM
Calendar day not days skip New Users to Excel 2 September 22nd 06 11:16 PM
Calendar Days and Option Buttons Andy Excel Discussion (Misc queries) 0 January 10th 06 09:50 PM


All times are GMT +1. The time now is 05:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"