+ Reply to Thread
Results 1 to 5 of 5

WEEKNUM for Date Range for each month

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    66

    WEEKNUM for Date Range for each month

    Team,

    I am searching through to get the excel formula to calculate the WeekNumber for each month beginning to end date. Week beginning day would be Monday and ending would be Sunday.

    The Requirement is

    Jul-2014 - Weeknumber for each date beginning from 01-Jul-2014 to 31-Jul-2014 (01-Jul-2014 to 06-Jul-2014 - Week1 and 07-Jul-2014 to 13-Jul-2014 - Week2 so on)
    similarly
    Aug-2014 -Weeknumber for each date beginning from 01-Jul-2014 to 31-Jul-2014 (01-Aug-2014 to 03-Aug-2014 - Week1 and 04-Aug-2014 to 10-Aug-2014 - Week2 so on)

    Challenging part is i have the Date range starting from 01-Jul-2014 and go on forever.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: WEEKNUM for Date Range for each month

    Try this


    Please Login or Register  to view this content.
    Where A1 is the date you're checking - this will return the week number for the month that date is in
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    07-15-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    66

    Re: WEEKNUM for Date Range for each month

    Perfect and clean .. thanks Crooza

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: WEEKNUM for Date Range for each month

    Quote Originally Posted by savetrees View Post
    .....01-Jul-2014 to 06-Jul-2014 - Week1 and 07-Jul-2014 to 13-Jul-2014 - Week2 so on...
    I don't think Crooza's suggested formula fulfils that requirement

    You say that 7/7/2014 is in week 2 but the formula will put it in week 2, it takes no account of the day of the week. If you want week 1 to start on the 1st of every month and week 2 to start on the following Monday then try this formula:

    =INT((13+DAY(A1)-WEEKDAY(A1-1))/7)
    Audere est facere

  5. #5
    Registered User
    Join Date
    07-15-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    66

    Re: WEEKNUM for Date Range for each month

    Hey daddylonglegs ... thanks for your updates and solution to it .. it is indeed was missing and i did not notice, because my data with dates were non-series and thanks for your detailed review. cheers

+ 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. [SOLVED] Calculating stats by week instead of month - WEEKNUM?
    By Beginner9 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2014, 11:56 AM
  2. Array function for date(month), Range Date(month)
    By dluhut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2013, 05:14 PM
  3. Year, Month, Day, Weeknum functions in a macro
    By gathrawnca in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-05-2010, 10:28 PM
  4. Custom function for weeknum to Month i got some issues with this need alittle help
    By robertjtucker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2006, 10:44 AM
  5. weeknum for month
    By maryj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2006, 02:35 PM

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