+ Reply to Thread
Results 1 to 2 of 2

Thread: A function to count the number of weeks between dates?

  1. #1
    Registered User
    Join Date
    12-30-2010
    Location
    somewhere, USA
    MS-Off Ver
    Excel 2010
    Posts
    83

    A function to count the number of weeks between dates?

    I noticed that when I checked Excel's built in functions that among the DATE, YEAR, MONTH and NOW...there isn't any for WEEK. Does anybody know of an equivalent function that does this or is there another way of getting two dates to return the number of weeks between them? Thanks in advance.
    Last edited by DorothyFan1; 02-03-2011 at 11:54 AM.

  2. #2
    Forum Guru Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007 and 2010
    Posts
    1,207

    Re: A function to count the number of weeks between dates?

    Hi,

    This formula can be used to calculate the number of weeks between two dates:

    =INT((EndDate-StartDate)/7)
    Note that the functions you mentioned (DATE, YEAR etc...) themselves do not calculate differences between dates. To get the number of years, months and / or days between two dates, use the DATEDIF function.
    Last edited by Colin Legg; 02-03-2011 at 08:28 AM.
    Hope that helps,

    Colin

    RAD Excel Blog

    Other tutorials:
    Array Formulas | Deleting Rows with VBA

+ 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.2.0