Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default Difference between dates

Hi All,

I need one help for date formula, I have employee sheet where the leave
sheet is, if the leave start from 1st of june and end 15th of June, so the
leaves are 15 days but when we apply formula e.g. B1-A1 then its return 14
not 15. what formula we can use to get accurate data?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Difference between dates

The formula is fine for finding the difference in days between the 1st and
the 15th, it is a difference of 15 days, just like 5-4=1, but 5 & 4 are
actually 2 numbers. Easiest way to find total number of days:
=EndDate-StartDate+1
--
John C


"Hassan" wrote:

Hi All,

I need one help for date formula, I have employee sheet where the leave
sheet is, if the leave start from 1st of june and end 15th of June, so the
leaves are 15 days but when we apply formula e.g. B1-A1 then its return 14
not 15. what formula we can use to get accurate data?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 202
Default Difference between dates

B1-A1+1

"Hassan" wrote:

Hi All,

I need one help for date formula, I have employee sheet where the leave
sheet is, if the leave start from 1st of june and end 15th of June, so the
leaves are 15 days but when we apply formula e.g. B1-A1 then its return 14
not 15. what formula we can use to get accurate data?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Difference between dates

On Wed, 23 Jul 2008 05:43:02 -0700, Hassan
wrote:

Hi All,

I need one help for date formula, I have employee sheet where the leave
sheet is, if the leave start from 1st of june and end 15th of June, so the
leaves are 15 days but when we apply formula e.g. B1-A1 then its return 14
not 15. what formula we can use to get accurate data?

Thanks


=B1-A1+1
--ron
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
Difference between dates Khurum Excel Worksheet Functions 12 August 13th 08 12:53 AM
Difference between two dates Ashutosh Excel Discussion (Misc queries) 8 June 2nd 07 01:19 AM
difference between dates Clash Excel Discussion (Misc queries) 4 May 26th 06 08:02 AM
difference between dates dcccgoose Excel Discussion (Misc queries) 3 May 15th 06 03:34 AM
difference between two dates dhouston1000 Excel Discussion (Misc queries) 2 August 24th 05 11:19 AM


All times are GMT +1. The time now is 04:06 PM.

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

About Us

"It's about Microsoft Excel"