+ Reply to Thread
Results 1 to 4 of 4

Convert Fiscal date to corresponding week number

  1. #1
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Convert Fiscal date to corresponding week number

    Good afternoon everyone,

    I have a spreadsheet that I use to convert a purchase order ship date from the actual date to the corresponding week it falls out on.

    The fiscal year always starts on February 1 regardless of the day of the week.

    The problem i am encountering is when the year changes. As soon as I enter 01/01/2010, the response I get is -4, where as 12/31/2009 is 48.

    I am using the following formula that I found somewhere, where R2 = 02/01/2009 (02/01/2009 falls out on a Sunday).

    =INT((R2-DATE(YEAR(R2),2,1)-WEEKDAY(R2,1))/7)+2

    My guess is that I need to make the formula "not care about" the day of the week.

    Thanks in advance for your help.
    Last edited by dagindi; 11-12-2009 at 06:28 PM.

  2. #2
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: Convert Fiscal date to cooresponding week number

    Try the formulas below:

    Please Login or Register  to view this content.
    or enter the beginning fiscal date in another cell, example (Q2).

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Convert Fiscal date to cooresponding week number

    I went with the first code suggestion and it works great. Thank you!!

    I would like to add (for other noobs like me ) that when the fiscal year changes you need to change 2009 to 2010 in the code.

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

    Re: Convert Fiscal date to corresponding week number

    If you replace the "hard-coded" year in the formula with YEAR(R2-31) then you won't ever need to change the formula......i.e.

    =INT((R2-DATE(YEAR(R2-31),2,1)-WEEKDAY(R2,1))/7)+2

+ 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