+ Reply to Thread
Results 1 to 13 of 13

Add 4 working days to =Today()

  1. #1
    Registered User
    Join Date
    05-15-2005
    Posts
    6

    Exclamation Add 4 working days to =Today()

    I need to calculate 4 working days from the date an order is received. I have a cell B3 "=Today()" then in B4 I want the result of "=Today() + 4 Working days"

    How do I do this?

  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    Fist of all what are you calling 'Working Days' ?

    You can find out what day of the week a certian date is by formatting the date with mm\dd\yyyy ddd output. For example todays date May 19, 2005 would return
    05/19/2005 Thu

    This will help you distinguish between weekdays and weekends but holidays will have to be handled differently.

  3. #3
    Registered User
    Join Date
    05-15-2005
    Posts
    6
    Work days would be M-F. I don't actually care what day of the week it is. All I want to do is add 4 days to 'Today'...not including weekends.
    ie. for today 5-19-05
    My cell says =Today() Output reads 5-19-05
    I want a format to say =Today()+4 Work Days Output should read 5-25-05....but it doesn't it says 5-23-05.

  4. #4
    Registered User
    Join Date
    05-15-2005
    Posts
    6
    Does anyone know how to do this?

  5. #5
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    I think I've got it working as a macro but didn't have time to fully test it. I am currently trying to get it written as a UDF for you.

    Here is the macro code if you want to take a look
    It will calculate the due date for any dates in the range you have selected and output those one cell to the right.

    Please Login or Register  to view this content.
    Hope this helps

  6. #6
    Forum Contributor
    Join Date
    02-26-2005
    Posts
    175
    Quote Originally Posted by piranhagirl
    I need to calculate 4 working days from the date an order is received. I have a cell B3 "=Today()" then in B4 I want the result of "=Today() + 4 Working days"

    How do I do this?
    Hi
    Would this work?
    If B3 has the current date then in B4 put ''=WORKDAY(B3,4)
    Without the quotations of course, and format the cell as you want it.
    Dave
    Last edited by Piranha; 05-20-2005 at 05:03 AM.

  7. #7
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    Here's a User Defined Function that should do what you want.

    Place this code in the workbook module. If you want it avaliable to any workbook opened on that machine then you can place it in a workbook module of the Personal.xls workbook.

    Please Login or Register  to view this content.
    To call the function simply type
    =DueDate(Cell Reference)
    directly in the worksheet

    Hope this helps

  8. #8
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481

    Another possibility

    Here's another possible solution that may be just as easy to implement

    put this worksheet formula into whichever cell you want the Date+4 work days.

    =IF(WEEKDAY(C4)=1,C4+5,IF(WEEKDAY(C4)=2,C4+4,IF
    (WEEKDAY(C4)=3,C4+4,C4+6)))

    This all goes on one line (in one cell) even though it looks like two lines here.

    HTH

  9. #9
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    I need to calculate 4 working days from the date an order is received. I have a cell B3 "=Today()" then in B4 I want the result of "=Today() + 4 Working days"

    How do I do this?
    Yet another approach. Use the following function:
    =WORKDAY(B3,4)

    Note: You need to enable the Analysis ToolPak to use the above function. For this, just go to TOOLS > ADDINS. And check the box for Analysis ToolPak

    - Mangesh

  10. #10
    Forum Contributor
    Join Date
    02-26-2005
    Posts
    175
    Quote Originally Posted by mangesh_yadav
    Yet another approach. Use the following function:
    =WORKDAY(B3,4)

    Note: You need to enable the Analysis ToolPak to use the above function. For this, just go to TOOLS > ADDINS. And check the box for Analysis ToolPak

    - Mangesh
    Hi
    Same solution i posted ealier, BUT "Thank you" Mangesh for adding about the
    Analysis Toolpak. I forget about that being an ADDIN.
    Thx
    Dave

  11. #11
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Hi Dave,

    I hadn't seen your post inbetween. Saw the last post of bhofsetz and then posted the solution. Anyway, sorry for the double post.

    Mangesh

  12. #12
    Forum Contributor
    Join Date
    02-26-2005
    Posts
    175
    Quote Originally Posted by mangesh_yadav
    Hi Dave,

    I hadn't seen your post inbetween. Saw the last post of bhofsetz and then posted the solution. Anyway, sorry for the double post.

    Mangesh
    Mangesh,
    Please don't be sorry. I am happy i knew an answer, to a question. AND i forgot
    about the Analysis toolpak. Very glad you posted with that info.
    Thx
    Dave

  13. #13
    Registered User
    Join Date
    05-15-2005
    Posts
    6

    Talking

    THANK YOU!!!! You have made my life so much easier!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1