+ Reply to Thread
Results 1 to 3 of 3

Need a formula to show the week number of the month

  1. #1
    Registered User
    Join Date
    03-26-2008
    Posts
    23

    Need a formula to show the week number of the month

    Hi,

    Please can anyone help me?

    I need a formula to look at a date and return the week number in the month, not in the year.

    For example, this month Week 1 would be 1st -4th
    Week 2 5th - 11th
    Week 3 12th - 18th

    And so on, the maximum number of weeks would be 6 weeks. So, 7th May would just return "2".

    Hope someone can help!!

    Thanks

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming the 1st of every month will be in week 1, and that week 2 starts on the next Monday then try this formula

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

    where your date is in A1

  3. #3
    Registered User
    Join Date
    03-26-2008
    Posts
    23
    Thanks, I'll give it a go.. What's the logic behind this formula, for future reference?

+ 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