+ Reply to Thread
Results 1 to 7 of 7

Trying to return the week number of dates in a fiscal year

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Trying to return the week number of dates in a fiscal year

    Hi, I have been working on a spreadsheet that uses week numbers. It was originally written for a standard calendar year, but the company is moving to a fiscal calendar that starts on the first Sunday of May each year.

    I have tried to convert many of the other suggested formulas but I always run into issues where on some of the future years some of the first few days in May return a week number of 0? I am usually fairly good at creating formulas but I can't seem to wrap my head around this one.

    To add to the problem all of the end user PC's have just been rolled back to Office 2003 due to some compatibility issues with other software we use, and I will not be able to get IT to add any new tool packs to all of the user PC's.

    One of the formulas I have tried is;

    Please Login or Register  to view this content.
    Any help would be appreciated.

    Thank you,

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Trying to return the week number of dates in a fiscal year

    can you try it like this???

    =INT((M10-WEEKDAY(M10+1)-DATE(YEAR(M10)-(MONTH(M10)<5),5,1))/7)+1
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Trying to return the week number of dates in a fiscal year

    Thanks vlady that formula has fixed some of the transitional weeks from showing up as week number 0 but it is still one week off on the first few days of May when there are less than 4 days.

    Like in 2014 week # 1 should start on Sunday May 4th. I am not sure I will be able to do this without using a vlookup to assign the correct fiscal year starting point?

    Thanks again for the help!

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Trying to return the week number of dates in a fiscal year

    Date of First Sunday in May:
    fiscal_start =DATE(some_year, 5, 1) + (7 - WEEKDAY(DATE(some_year, 5, 1), 11))

    Once you've got that....
    INT( (test_date - fiscal_start) /7 )+1

    something like that should do it, right?

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Trying to return the week number of dates in a fiscal year

    Thanks, Ben I will give that a shot when I get back to the office in a few hours.

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

    Re: Trying to return the week number of dates in a fiscal year

    Quote Originally Posted by ben_hensel View Post
    fiscal_start =DATE(some_year, 5, 1) + (7 - WEEKDAY(DATE(some_year, 5, 1), 11))
    The problem with that is that you need to determine which fiscal year each date is in

    I adapted a formula I use for ISO week numbers

    =INT((M10-WEEKDAY(M10)-DATE(YEAR(M10+246-WEEKDAY(M10))-1,5,7))/7)+2

    246 = number of days from 30th April to 1st Jan
    Audere est facere

  7. #7
    Registered User
    Join Date
    12-03-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Trying to return the week number of dates in a fiscal year

    Quote Originally Posted by daddylonglegs View Post
    ...I adapted a formula I use for ISO week numbers

    =INT((M10-WEEKDAY(M10)-DATE(YEAR(M10+246-WEEKDAY(M10))-1,5,7))/7)+2
    Thank you, this worked! I might make my deadline after all!

    Thank you, Thank you, 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. Calculate week number for Fiscal Year Dates
    By katie_10042 in forum Excel General
    Replies: 16
    Last Post: 02-14-2017, 05:58 AM
  2. Calculate week number for Fiscal Year Dates
    By Ginu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2013, 03:10 PM
  3. 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
  4. Replies: 6
    Last Post: 05-08-2013, 01:46 PM
  5. Replies: 4
    Last Post: 09-22-2005, 10: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