Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Trainer
 
Posts: n/a
Default calculate dates in Excel 2000

I have a spreadsheet with two date columns, a holiday start date and a
holiday finish date. I need to calculate the amount of holidays taken but if
I subtract one from the other, I get the wrong answer. Eg 01/01/05 and
10/01/05, would be 10 days taken, however the formula returns only 9. Any
ideas please.
--
Trainer
  #2   Report Post  
Dave O
 
Posts: n/a
Default

Look at the NETWORKDAYS() function: will that do it for you? Your Jan
1 through Jan 10 example includes two weekends, so NETWORKDAYS will not
be your best choice if you count weekend days as holidays.

If you say "I'll be on holiday from the 7th through the 10th" then
you'll be on holiday for 4 days. To express those 4 days
mathematically, the formula is 10 minus 7 plus 1. You can make your
original formula work by adding 1.

  #3   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

If you subtract a start date from a finish date, you get the number of
days AFTER the start date, so add 1 to the result to get the number of
days INCLUDING the start date.

As Dave O. is pointing out, weekend days will be included in a simple
date subtraction, but are not usually counted in the amount of holidays
taken.

Jerry

Trainer wrote:

I have a spreadsheet with two date columns, a holiday start date and a
holiday finish date. I need to calculate the amount of holidays taken but if
I subtract one from the other, I get the wrong answer. Eg 01/01/05 and
10/01/05, would be 10 days taken, however the formula returns only 9. Any
ideas please.


  #4   Report Post  
Trainer
 
Posts: n/a
Default

Thanks guys, I just wondered if there was a more sophisticated function that
had to be used, but as simply adding 1 works fine, that's OK. Cheers.

"Jerry W. Lewis" wrote:

If you subtract a start date from a finish date, you get the number of
days AFTER the start date, so add 1 to the result to get the number of
days INCLUDING the start date.

As Dave O. is pointing out, weekend days will be included in a simple
date subtraction, but are not usually counted in the amount of holidays
taken.

Jerry

Trainer wrote:

I have a spreadsheet with two date columns, a holiday start date and a
holiday finish date. I need to calculate the amount of holidays taken but if
I subtract one from the other, I get the wrong answer. Eg 01/01/05 and
10/01/05, would be 10 days taken, however the formula returns only 9. Any
ideas please.



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
Excel XP Pivot Table in Excel 2000 bsantona Excel Discussion (Misc queries) 0 January 20th 05 06:37 PM
other systems detecting excel 4.0 if excel 2000 is installed Tristan_Flynn Setting up and Configuration of Excel 0 January 18th 05 06:55 PM
Excel 2000 crashes Win98 when I save. All reloads failed. Paul Klinkman Excel Discussion (Misc queries) 1 December 7th 04 11:28 PM
How do you calculate the nth root of a number in Excel 2003? William Excel Worksheet Functions 2 November 17th 04 04:19 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


All times are GMT +1. The time now is 09:19 AM.

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"