+ Reply to Thread
Results 1 to 4 of 4

EOMONTH to Calculate Fiscal Month/Year - Error

  1. #1
    Registered User
    Join Date
    08-16-2016
    Location
    Illinois, USA
    MS-Off Ver
    Office 365
    Posts
    49

    EOMONTH to Calculate Fiscal Month/Year - Error

    I've been using a formula for the last 6 months or so to automatically calculate the fiscal month and year for a graph point based on the date of the raw data as well as the previous week's date. When updating the data for January I've run into an issue with the formula. It is calculating as fiscal '20 rather than fiscal '19, and changing the excel date did not correct the issue as I'd thought it would. I've attached an example spreadsheet, where M4 & N4 contain the formula (also pasted below), to show the issue in N4. The formula is reading the previous and current week's date in M5 & N5, respectively. Any help is appreciated. Thank you!

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,736

    Re: EOMONTH to Calculate Fiscal Month/Year - Error

    I have difficulty following the narrative and relating it to the upload.

    I suspect that formula can be simplified and shortened, but I am having difficulty relating it to the intent so I can't say for sure.

    Let's start here. Specifically what dates to you want returned in M4:N4?
    Dave

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,494

    Re: EOMONTH to Calculate Fiscal Month/Year - Error

    To some time to analyse ist
    In the lookup the problem is caused by taking the year from the prevoious week. while the lookup formula starts with 4 and has 9 added on jan fith that pushes the date 13 months ahead from 2018 which is jan 20.
    You would need another test that when the calander year changes over, you need to reduce year(n5) by 1 to compensate for adding 9 to 4.

    But to be honest I think the formula looks overcomplated. I like formula's that work always without manual intervention but in this case I would use a simple lookup table because every fiscal year is normally kept in separate sheets so some yearly setup is acceptable if it greatly simplefy a formula. The rules for fiscal year are standard each year all that changes is the year and the weekday it starts on. when you have this table setup all you need to do once a year is change the fiscal year in a fixed cell to update the table.

    then a simple lookup would find the fiscal month

    this is my formula
    Please Login or Register  to view this content.
    see attachment for the table in T:V columns.
    Attached Files Attached Files
    Last edited by Roel Jongman; 01-22-2019 at 04:40 PM.

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: EOMONTH to Calculate Fiscal Month/Year - Error

    @ GregStewartPTC:

    A couple notes on your existing formula:

    1. If I understand it correctly, the formula is tailored for a fiscal year of May 2018 - Apr 2019 and it will not work beyond that range.

    2. If I understand it correctly, there is a week-count error in your formula: the first array constant should be {1,5,10,14,18,22,27,31,35,40,44,48,53}.

    Please see if the following formula works for you. It should be good for any year:

    Please Login or Register  to view this content.

+ 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] Convert calendar year month to fiscal year month
    By sheetnoob in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2018, 03:30 AM
  2. [SOLVED] Date functions YEAR, MONTH, EOMONTH do not work for the array format?
    By alice2011 in forum Excel General
    Replies: 2
    Last Post: 05-06-2015, 08:59 PM
  3. Calculate Start & End Date & Month for Each Week In Fiscal Year
    By sarndt01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-22-2014, 02:14 PM
  4. how to convert date to fiscal year if fiscal year start at 16th or 17th of July
    By sushil shakya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2013, 03:32 AM
  5. [SOLVED] Create Fiscal Year - Lookup Date in Fiscal Month Date Range and Return EOM Date
    By gbriscoe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2013, 03:29 PM
  6. [SOLVED] Pivot: Replace month numbers with month names and sort by fiscal year
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2011, 02:13 PM
  7. Function Fiscal Year and Month
    By Bob@Sun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2010, 01:07 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