Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Collcat
 
Posts: n/a
Default Subtracting time in date format


Thank You
Good stuff.

I see one problem though. Due to me selecting 8 weeks for the example.

Lets say my due date is 11/9/04, 8 am and I have 3 days (72 hours) to
complete the assignment and I can't work on weekends.

According to the formula I should start on 11/6. Now 11/6 is on a
Saturday!
So I need the formula to skip the weekend days when it is calculating
backwards to the start date.

Any ideas?

// Coolcat


--
Collcat
------------------------------------------------------------------------
Collcat's Profile: http://www.excelforum.com/member.php...o&userid=15598
View this thread: http://www.excelforum.com/showthread...hreadid=277036

  #2   Report Post  
anilsolipuram
 
Posts: n/a
Default


try this


startdate=IF(B4<5,IF(WEEKDAY(B4)=7,A4-1-B4,IF(WEEKDAY(B4)=1,A4-2-B4,IF(B4-WEEKDAY(B4)<2,A4-2-B4,A4-B4))),IF(WEEKDAY(A4)=1,A4-2-INT(B4/5)*7-MOD(B4,5),IF(WEEKDAY(A4)=7,A4-INT(B4/5)*7-1-MOD(B4,5),A4-INT(B4/5)*7-MOD(B4,5))))


a4 is due date and b4 is number of working days needed to complete the
assignment.


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=277036

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
How do I format column containing date and time to only show the . ColoradoKid Excel Discussion (Misc queries) 5 December 18th 04 06:25 PM
Subtracting time in date format Collcat Excel Worksheet Functions 1 November 10th 04 10:40 PM
Subtracting time in date format Collcat Excel Worksheet Functions 1 November 10th 04 09:42 PM
Subtracting time in date format Collcat Excel Worksheet Functions 0 November 10th 04 06:33 PM
Subtracting time in date format Collcat Excel Worksheet Functions 1 November 10th 04 05:45 PM


All times are GMT +1. The time now is 04:20 AM.

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

About Us

"It's about Microsoft Excel"