Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Date calculation question

I have a submission date (reg date field) & an expected due date (using
Workday to calculate 3 workdays from submission date, minus holidays). I
would like to change the due date so if the document is submitted after
3:00pm, an extra day is added.

How would I do this?

Thanks,
JoAnn
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,624
Default Date calculation question

If you include the time in the submission date, one way:

A1: 27 February 2008 3:30 pm
B1: =WORKDAY(A1,3+(MOD(A1,1)15/24), holidays)

assuming no holidays, this will return 4 March 2008


another, simpler, way:

B1: =WORKDAY(A1+8.99999/24,3)



In article ,
JoAnn wrote:

I have a submission date (reg date field) & an expected due date (using
Workday to calculate 3 workdays from submission date, minus holidays). I
would like to change the due date so if the document is submitted after
3:00pm, an extra day is added.

How would I do this?

Thanks,
JoAnn

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Date calculation question

Thanks! I'll try that.
--
JoAnn


"JE McGimpsey" wrote:

If you include the time in the submission date, one way:

A1: 27 February 2008 3:30 pm
B1: =WORKDAY(A1,3+(MOD(A1,1)15/24), holidays)

assuming no holidays, this will return 4 March 2008


another, simpler, way:

B1: =WORKDAY(A1+8.99999/24,3)



In article ,
JoAnn wrote:

I have a submission date (reg date field) & an expected due date (using
Workday to calculate 3 workdays from submission date, minus holidays). I
would like to change the due date so if the document is submitted after
3:00pm, an extra day is added.

How would I do this?

Thanks,
JoAnn


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Date calculation question - works but there's another problem

Your solution works great! But the change impacts other parts of my
spreadsheet.

My Expected Due Date field is actually 2 fields. I have the Workday field
column hidden (because I can't conditionally format it) and I display its
result in another regular date field so I can conditionally format it to
appear in red font if the submitter manually changes the Expected Due Date to
one that is earlier than the automatically generated 3-day date.

Although I'm sure there is probably a better way to do this ... for the
conditional formatting, I have the # of days calculated/displayed in another
hidden field (# Days). So if the value of the # days field is < 3, I apply
red font to the manually changed Expected Due Date. Since the change, the
Expected Due Date field is turning red when it shouldn't.

How can I fix this? I thought I could just do what I did before & create a
hidden Submission Date CALC field = the value of the Submission date field
(with a different date format) & then do the #days from that. Unfortunately,
when I do that, the time still carries over with it. Changing the date format
to m/dd/yy doesn't seem to strip the time from it.

Is there any way to perform calculations on dates that have 2 different
formats? I only need to have the time entered/displayed in the Submission
field. The expected due date & completion fields need just the date.

I will also need to determine the turnaround time (completed date -
submission date), which I am currently using NETWORKDAYS for.



--
JoAnn


"JE McGimpsey" wrote:

If you include the time in the submission date, one way:

A1: 27 February 2008 3:30 pm
B1: =WORKDAY(A1,3+(MOD(A1,1)15/24), holidays)

assuming no holidays, this will return 4 March 2008


another, simpler, way:

B1: =WORKDAY(A1+8.99999/24,3)



In article ,
JoAnn wrote:

I have a submission date (reg date field) & an expected due date (using
Workday to calculate 3 workdays from submission date, minus holidays). I
would like to change the due date so if the document is submitted after
3:00pm, an extra day is added.

How would I do this?

Thanks,
JoAnn


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 calculation across workbooks / Workbook naming question. Phil Excel Discussion (Misc queries) 2 February 1st 08 12:55 PM
End Date Calculation (adding a start date duration) Silena K-K Excel Discussion (Misc queries) 5 January 25th 08 04:27 PM
Tricky Date calculation: How to calculate a future date [email protected] Excel Discussion (Misc queries) 9 August 11th 06 04:24 AM
A simple date calculation question. Seldum Excel Discussion (Misc queries) 11 June 29th 06 10:48 AM
A simple date calculation question. Seldum Excel Discussion (Misc queries) 2 June 26th 06 04:56 PM


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