+ Reply to Thread
Results 1 to 6 of 6

Date count formula.

  1. #1
    Registered User
    Join Date
    08-14-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    43

    Date count formula.

    Hello All:

    I have cell A for Date Order, cell B for Date packaging, cell C for Date Shipping. I would appreciate your help with the formula for:
    1. Cell B is 4 working days from Date Order.
    2. Cell C is 8 calendar days from Date Order.

    Thanks in advance!
    KT
    Last edited by 11ktran44; 08-27-2010 at 05:55 AM. Reason: Thank you so much All.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Date count formula.

    A2 contains a date.
    B2 =IF($A2>0, $A2+4, "") ...formatted as a date
    C2 =IF($A2>0, $A2+8, "") ...formatted as a date


    Copy the B2 and C2 formulas down as far as you want. The formulas will only generate dates when you put a date into column A.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Date count formula.

    For B you would be best advised to use the WORKDAY function - prior to XL2007 this requires activation of the Analysis ToolPak Add-In via Tools -> Add-Ins
    (there are alternatives but they can be cumbersome pending public holiday requirements)

    B2: =IF(A2,WORKDAY(A2,4,holidayrange),"")
    copied down

    that in red is optional but essentially refers to a named range that would contain a listing of public holidays should they be needed

  4. #4
    Registered User
    Join Date
    08-14-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Date count formula.

    Quote Originally Posted by JBeaucaire View Post
    A2 contains a date.
    B2 =IF($A2>0, $A2+4, "") ...formatted as a date
    C2 =IF($A2>0, $A2+8, "") ...formatted as a date


    Copy the B2 and C2 formulas down as far as you want. The formulas will only generate dates when you put a date into column A.
    Thank you so much for your help,

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Date count formula.

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Date count formula.

    For the sake of my sanity (and future readers) when you say:

    Quote Originally Posted by 11ktran44
    Cell B is 4 working days from Date Order.
    do you actually mean working days or are you in fact referring to just calendar days ?

    for the former post # 2, for the latter post #3

+ 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