+ Reply to Thread
Results 1 to 4 of 4

Count weeks betweens dates

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    19

    Count weeks betweens dates

    I am trying to calculate lead times for orders coming from a specific vendor. In the sample provided I have entered a simple formula to calculate # of weeks between 2 dates but I want it to use another cell if a date is not available.

    Essentially i want it to calculate # of weeks between column G & E, if E does not have a date use column J. If no dates leave blank

    Forum.xlsx

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Count weeks betweens dates

    =iferror(int((if(e2="",if(j2="",1/0,j2),e2)-g2)/7), "")
    Last edited by daffodil11; 11-05-2013 at 11:46 AM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Count weeks betweens dates

    =if(e2="",if(j2="","",iferror(int((j2-g2)/7), "")),iferror(int((e2-g2)/7), ""))

  4. #4
    Registered User
    Join Date
    03-08-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Count weeks betweens dates

    Both worked beautifully. Thank you!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If Then with Multiple Betweens...
    By JeffGreat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2012, 07:55 PM
  2. A function to count the number of weeks between dates?
    By DorothyFan1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2011, 09:25 AM
  3. difference between two dates in working weeks(5 day weeks)
    By AWilderbeast in forum Excel General
    Replies: 3
    Last Post: 08-31-2010, 09:21 AM
  4. Calculating Month and days betweens dates
    By deepak_gl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2007, 08:34 AM
  5. Weeks between dates
    By BobbiA in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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