+ Reply to Thread
Results 1 to 5 of 5

Week Number formula for fiscal year

  1. #1
    Registered User
    Join Date
    07-11-2018
    Location
    Sunshine Coast, Australia
    MS-Off Ver
    2016
    Posts
    8

    Week Number formula for fiscal year

    Hi,
    I've tried this formula but when I use it for past years, say 2014 the 9/7/2014 is resulting in week 3 for Wednesday the 9th July, when it should be week 2. Tuesday the 8th July is also resulting in week 3 - same as Wednesday when the start of the week is Wednesday. Am I doing something wrong?

    To clarify I need each week to start on a Wednesday and finish on a Tuesday as this is our pay cycle. Financial years begins on 1st July and ends on 30 June.

    =IF(((A3-DATE(IF(MONTH(A3)>=7,YEAR(A3),YEAR(A3)-1),7,1)+WEEKDAY(DATE(IF(MONTH(A3)>=7,YEAR(A3),YEAR(A3)-1),7,1),13))/7)-(INT((A3-DATE(IF(MONTH(A3)>=7,YEAR(A3),YEAR(A3)-1),7,1)+WEEKDAY(DATE(IF(MONTH(A3)>=7,YEAR(A3),YEAR(A3)-1),7,1),13))/7))=0,INT((A3-DATE(IF(MONTH(A3)>=7,YEAR(A3),YEAR(A3)-1),7,1)+WEEKDAY(DATE(IF(MONTH(A3)>=7,YEAR(A3),YEAR(A3)-1),7,1),13))/7),1+INT((A3-DATE(IF(MONTH(A3)>=7,YEAR(A3),YEAR(A3)-1),7,1)+WEEKDAY(DATE(IF(MONTH(A3)>=7,YEAR(A3),YEAR(A3)-1),7,1),13))/7))

    The formula states day 13, which is Wednesday so I can't work out why it's not working.

    Any help would be great.

    Thanks

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Week Number formula for fiscal year

    So, 2nd of July 2014 is Wednesday is week 1
    what week does Tuesday 1st of July 2014 make then?

    also
    Wednesday 29th June 2016...is this week 53 or week 1?
    Wednesday 6th July 2016.....is this week 1 or 2?

    Depending on your answer i may or maynot have the answer you require....
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-11-2018
    Location
    Sunshine Coast, Australia
    MS-Off Ver
    2016
    Posts
    8

    Re: Week Number formula for fiscal year

    Hi Humdingaling,

    Actually you are right.

    Wednesday 25th June 2014 = Week 1
    Wednesday 2nd July 2014 = Week 2.

    Wednesday 29th June 2016 = Week 1
    Wednesday 6th July 2016 = Week 2

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Week Number formula for fiscal year

    in that case....
    if B2 has the date

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-11-2018
    Location
    Sunshine Coast, Australia
    MS-Off Ver
    2016
    Posts
    8

    Re: Week Number formula for fiscal year

    Fantastic! Thank you! It works perfectly.

+ 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] week number formula - fiscal year
    By rubz71 in forum Excel General
    Replies: 14
    Last Post: 07-11-2018, 11:16 PM
  2. Fiscal Year Week Numbers displaying a negative number...
    By hzleyes62 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-17-2017, 02:55 AM
  3. Calculate week number for Fiscal Year Dates
    By katie_10042 in forum Excel General
    Replies: 16
    Last Post: 02-14-2017, 05:58 AM
  4. [SOLVED] Trying to return the week number of dates in a fiscal year
    By NedFlanders in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2013, 09:16 PM
  5. Calculate week number for Fiscal Year Dates
    By Ginu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2013, 03:10 PM
  6. Convert date to week number for fiscal year starting July 25
    By ARayburn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-15-2013, 10:07 AM
  7. Replies: 6
    Last Post: 05-08-2013, 01:46 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