Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Date Calculation Problem

This one is really stumping me...

I have a spreadsheet that contains a column of dates, the next column should
calculate that date plus 1 day. I only want workdays.

My formula is: =WORKDAY(A5,1)

I'm getting:

Column A Column B
Open Date/Time Close Date/Time
09/19/2006 2:19 PM 09/20/2006 12:00 AM
08/18/2006 12:41 PM 08/21/2006 12:00 AM
11/01/2006 8:25 AM 11/02/2006 12:00 AM
08/12/2006 11:40 AM 08/14/2006 12:00 AM
10/07/2006 12:20 PM 10/09/2006 12:00 AM

The dates in Sept and Nov are working. The dates with Aug and Oct are not.
(They are adding more than 1 day.) They all have the same formula and the
formats are all the same.

What could I be missing here?

Thank you,

Rachel



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Date Calculation Problem

I'm not sure about the workings of the "Workday" function but if you notice
something he 8/18 is a Friday, 8/21 is a Monday. 8/12 is a Saturday,
8/14 is a Monday. 10/07 is a Saturday, 10/09 is a Monday. 9/19 is a
Tuesday. 11/01 is a Wednesday.

It would seem to me that the Workday function will only give results from
Monday through Friday (the standard work week). Therefore if you put in 8/17
it should result in 8/18.

"RFrechette" wrote:

This one is really stumping me...

I have a spreadsheet that contains a column of dates, the next column should
calculate that date plus 1 day. I only want workdays.

My formula is: =WORKDAY(A5,1)

I'm getting:

Column A Column B
Open Date/Time Close Date/Time
09/19/2006 2:19 PM 09/20/2006 12:00 AM
08/18/2006 12:41 PM 08/21/2006 12:00 AM
11/01/2006 8:25 AM 11/02/2006 12:00 AM
08/12/2006 11:40 AM 08/14/2006 12:00 AM
10/07/2006 12:20 PM 10/09/2006 12:00 AM

The dates in Sept and Nov are working. The dates with Aug and Oct are not.
(They are adding more than 1 day.) They all have the same formula and the
formats are all the same.

What could I be missing here?

Thank you,

Rachel



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Date Calculation Problem

The WORKDAY function returns the first weekday date that is the
specified number of days from your start date. When your start date is
in the middle of the week, your formula returns the next day- when that
day is a weekday. The August and October dates are on a weekend or a
Friday, so they don't return the next day, they return the next soonest
weekday- that's what the WORKDAY function does.

If you would like to return the next day's date, regardless of
weekday/weekend, you can simply use
=A5+1
for example.

What are you trying to do? It may be a matter of using another formula.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Date Calculation Problem

I just realized that myself.

You know, I checked that for the Aug. dates and ended up looking at the
wrong month.

I'm an idiot!

Thank you for your quick response.

Rachel

"lurker111" wrote:

I'm not sure about the workings of the "Workday" function but if you notice
something he 8/18 is a Friday, 8/21 is a Monday. 8/12 is a Saturday,
8/14 is a Monday. 10/07 is a Saturday, 10/09 is a Monday. 9/19 is a
Tuesday. 11/01 is a Wednesday.

It would seem to me that the Workday function will only give results from
Monday through Friday (the standard work week). Therefore if you put in 8/17
it should result in 8/18.

"RFrechette" wrote:

This one is really stumping me...

I have a spreadsheet that contains a column of dates, the next column should
calculate that date plus 1 day. I only want workdays.

My formula is: =WORKDAY(A5,1)

I'm getting:

Column A Column B
Open Date/Time Close Date/Time
09/19/2006 2:19 PM 09/20/2006 12:00 AM
08/18/2006 12:41 PM 08/21/2006 12:00 AM
11/01/2006 8:25 AM 11/02/2006 12:00 AM
08/12/2006 11:40 AM 08/14/2006 12:00 AM
10/07/2006 12:20 PM 10/09/2006 12:00 AM

The dates in Sept and Nov are working. The dates with Aug and Oct are not.
(They are adding more than 1 day.) They all have the same formula and the
formats are all the same.

What could I be missing here?

Thank you,

Rachel



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Date Calculation Problem

I figured it out. I was using the correct formula and it was actually doing
what I wanted.

Like I told Lurker111, I'm an idiot. Must be because it's a couple of hours
before the holiday begins...

Thanks for your response.

Rachel

"Dave O" wrote:

The WORKDAY function returns the first weekday date that is the
specified number of days from your start date. When your start date is
in the middle of the week, your formula returns the next day- when that
day is a weekday. The August and October dates are on a weekend or a
Friday, so they don't return the next day, they return the next soonest
weekday- that's what the WORKDAY function does.

If you would like to return the next day's date, regardless of
weekday/weekend, you can simply use
=A5+1
for example.

What are you trying to do? It may be a matter of using another formula.


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
Date Comparison Calculation PAR Excel Worksheet Functions 2 March 22nd 06 05:18 PM
back date calculation? [email protected] Excel Worksheet Functions 1 January 15th 06 05:10 PM
Nett Date Calculation Midas NDT Sales Excel Worksheet Functions 4 December 16th 05 05:26 PM
Date Calculation Alpur Excel Discussion (Misc queries) 0 November 15th 05 02:38 PM
Excel 2002 date formulas problem Andrew Warren Excel Worksheet Functions 4 January 6th 05 11:35 AM


All times are GMT +1. The time now is 07:12 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"