Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting calendar Days - not including Sundays | Excel Discussion (Misc queries) | |||
Is there a formular for calendar days | Excel Discussion (Misc queries) | |||
Calendar days | Excel Worksheet Functions | |||
Calendar day not days | New Users to Excel | |||
Calendar Days and Option Buttons | Excel Discussion (Misc queries) |