+ Reply to Thread
Results 1 to 14 of 14

[Fiscal Year Quarters] Formula that returns the fiscal year for a date

  1. #1
    Registered User
    Join Date
    07-02-2019
    Location
    Romania
    MS-Off Ver
    Latest
    Posts
    24

    [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Hello everyone,

    I'm in need of some help regarding a formula that returns the Fiscal Year Quarter from a date, so far what I've done is write in a sheet the start and end dates of 2020 Quarters and used a nested if function to bring back a correct result.

    I work with a lot of data and I may get requests to find out the Fiscal Year Quarters for other dates, ex : 2017 / 2016 etc.

    Is there a formula that directly looks at a date and returns the exact quarter and fiscal year ?

    Thank you !

    Attached you can find my document with the nested formulas.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Try this:

    =INDEX(Quarters!$B$4:$B$9,MATCH('Dates - where formulas are'!A2,Quarters!$C$4:$C$9,1))

    Or, for your locale:

    =INDEX(Quarters!$B$4:$B$9;MATCH('Dates - where formulas are'!A2;Quarters!$C$4:$C$9;1))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Or: =IFERROR(LOOKUP(2,1/(Quarters!$C$4:$C$9<=A2)/(Quarters!$D$4:$D$9>=A2),Quarters!$B$4:$B$9),"N/A")
    Click the * to say thanks.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Without lookup table with your month parameters.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    and/or another option:

    =LOOKUP(MONTH(A2);{1,4,7,10};"FY"&RIGHT(YEAR(A2)+{0,1,1,1},2)&" Q"&{4,1,2,3})
    copied down

    swap out ; for , if not required per your locale.

    note: as PaulM has pointed out, you may want to apply an outer error handler for non-dates (e.g. Spring)

  6. #6
    Registered User
    Join Date
    07-02-2019
    Location
    Romania
    MS-Off Ver
    Latest
    Posts
    24

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Thank you all !

    They all worked perfectly.

  7. #7
    Registered User
    Join Date
    07-02-2019
    Location
    Romania
    MS-Off Ver
    Latest
    Posts
    24

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Hello again !

    I've marked this thread as unresolved (temporarily) now because I was wondering if you could help me with a simplified formula, the document will be given to someone whom is not entirely familiar with excel.

    Can a formula be made that would verify if a date is between the Financial Quarters ( Q1-Q4 ) and just display the correct result in the following format : "FYXX QX" , where "XX" is the last two numbers of the year and "X" is one of the quarters ( 1-4 ).

    I've found that using the Choose Function, it brings me the correct Quarters but I cannot figure out how to change the result format into " "FYXX QX"", I've used the following : =CHOOSE(MONTH(C4),4,4,4,1,1,1,2,2,2,3,3,3)

    Thank you !
    Attached Files Attached Files
    Last edited by Rastancu; 10-23-2019 at 05:08 AM.

  8. #8
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    I would suggest modifying / simplifying #5 so easier to follow, e.g:

    ="FY"&RIGHT(YEAR(A2)+LOOKUP(MONTH(A2),{1,4},{0,1})&" Q"&LOOKUP(MONTH(A2),{1,4,7,10},{4,1,2,3})

    first bit FY, append 2 rightmost digits of year - adjust year by 1 when month is > 3, append space Q, and then lookup month to determine quarter (1-3 -> 4, 4-7 -> 1 etc...)

    LOOKUP is a very basic construct, a bit like using VLOOKUP with TRUE as final parameter, but you could replace each with 12 item CHOOSEs, if you wanted to.
    Last edited by XLent; 10-23-2019 at 06:48 AM. Reason: typo in narrative

  9. #9
    Registered User
    Join Date
    07-02-2019
    Location
    Romania
    MS-Off Ver
    Latest
    Posts
    24

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Thank you XLent,

    I am however assigned to make the formula more simplistic in terms of the entry and I found that using the Choose function is accepted at my workspace and now all I have to do is add the Year near the Quarter result which at the time of writing this I am still having issues.

  10. #10
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    OK, but in the most basic of terms, logically, you cannot determine year ignorant of month as the latter determines the former
    i.e. for months 1-3 Calendar Year = Fiscal Year whereas for all other months Fiscal Year = Calendar Year + 1

    You can write this basic logic as many different ways as you like, and CHOOSE vs LOOKUP is inconsequential, both are on the beginner side of things

    to use CHOOSE to determine year you would need:

    =YEAR(x) + CHOOSE(MONTH(x),0,0,0,1,1,1,1,1,1,1,1,1)

    which is clearly ridiculous - a basic IF approach would do the same:

    =YEAR(x) + IF(MONTH(x)>3,1,0)

    (the above is for transparency as technically the IF w/ 1 & 0 isn't required)

    this will still return a 4 digit year, obviously, so to get FY00 you need to either, replace the first 2 chars of the year

    =REPLACE(< year calc >,1,2,"FY")

    or, use RIGHT to get 2 chars and prefix with FY

    ="FY"&RIGHT(< year calc >,2)

    to the above you can append your existing CHOOSE with a "Q" prefix to get "FY## Q#"

    if the above does not work for you I will let others pick up as I'm not quite sure how simpler you can make it and, in reality, you cannot do this with a solitary CHOOSE call.

  11. #11
    Registered User
    Join Date
    07-02-2019
    Location
    Romania
    MS-Off Ver
    Latest
    Posts
    24

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    I understand and appreciate the help, I've managed to apply some of the things you mention and the formula looks like this - ="FY"&RIGHT(YEAR(A2),2)&" Q"&CHOOSE(MONTH(A2),4,4,4,1,1,1,2,2,2,3,3,3).

    While it does give me the correct quarter now and the returned result has the aforementioned format it does not five me the correct fiscal year

    For example if I use it on FY19 Q3, let's say the start 1-Oct-2018, the result will be FY18 Q3.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,556

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Try pasting the following modification of the formula in post #11 into cell E4 and then copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Registered User
    Join Date
    07-02-2019
    Location
    Romania
    MS-Off Ver
    Latest
    Posts
    24

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    Thank you all !

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,556

    Re: [Fiscal Year Quarters] Formula that returns the fiscal year for a date

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] Extracting Fiscal Year / Financial Year based on the Quarters using the
    By Asad Mir in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2019, 08:55 AM
  2. Transpose Quarters from Calendar Year to Fiscal Year
    By jodiander in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2013, 01:00 PM
  3. 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
  4. [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
  5. Replies: 3
    Last Post: 08-14-2009, 04:07 AM
  6. Replies: 0
    Last Post: 11-28-2007, 07:00 AM
  7. To automatically give fiscal period/fiscal year
    By Turnipboy in forum Excel General
    Replies: 7
    Last Post: 01-19-2006, 05:15 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