Closed Thread
Results 1 to 20 of 20

How to get month and year of previous and current financial year?

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    How to get month and year of previous and current financial year?

    Hi friends,

    I want to get a first month and year of previous and current financial year; last month and year of previous and current financial year. I used the following formula to get it but not succeed.
    Please Login or Register  to view this content.
    In the attached workbook I have shown the require output. I want to get it in local language. So I used ‘vlookup and text’ function combination to get it.

    Any help will be highly appreciated.

    Thanking you,
    Attached Files Attached Files
    Sincerely,

    mso3

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: How to get month and year of previous and current financial year?

    In BD4

    =IF(MONTH(TODAY())<=3,DATE(YEAR(TODAY())-1,4,1),DATE(YEAR(TODAY()),4,1))

    in BD5

    =EDATE(BD4,11)

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to get month and year of previous and current financial year?

    I used four independent formulae, based around this construction:

    =IF(MONTH(TODAY())>=4,DATE(YEAR(TODAY())-1,4,1),DATE(YEAR(TODAY())-2,4,1))

    This gives first month of previous FY
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to get month and year of previous and current financial year?

    OMG... JT has been there 20 minutes ago. Guess who forgot to refresh before posting!!

  5. #5
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to get month and year of previous and current financial year?

    Hi John,
    Thank you. I'm getting output in the binary code number of date.
    I require a output in local language so I require a combination of 'vlookup, text, edate' function. the vlookup table is in column 'CA:CB' to get local month name in output.
    Thanking you,

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: How to get month and year of previous and current financial year?

    So ...

    =VLOOKUP(TEXT(BD4,"MMMM"),$CA:$CB,2,0) & TEXT(BD4,"[$-4000000]yyyy")

    Copy down

    OR

    replace BD4 with the formula in BD4 (and same for BD5)

    =VLOOKUP(TEXT(IF(MONTH(TODAY())<=3,DATE(YEAR(TODAY())-1,4,1),DATE(YEAR(TODAY()),4,1)),"MMMM"),$CA:$CB,2,0) & TEXT(IF(MONTH(TODAY())<=3,DATE(YEAR(TODAY())-1,4,1),DATE(YEAR(TODAY()),4,1)),"[$-4000000]yyyy")


    =VLOOKUP(TEXT(EDATE(BD4,11),"MMMM"),$CA:$CB,2,0) & TEXT(EDATE(BD4,11),"[$-4000000]yyyy")
    Last edited by JohnTopley; 04-09-2017 at 03:15 PM.

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

    Re: How to get month and year of previous and current financial year?

    Quote Originally Posted by JohnTopley View Post
    ......IF(MONTH(TODAY())<=12.......
    Hello John,

    Won't that always be TRUE?
    Audere est facere

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: How to get month and year of previous and current financial year?

    Ooops ...Yes ... I changed formula but obviously posted an earlier version...Careless

    so if month is Jan to Match, then previous financial year, otherwise current financial year

    =VLOOKUP(TEXT(IF(MONTH(TODAY())<=3,DATE(YEAR(TODAY())-1,4,1),DATE(YEAR(TODAY()),4,1)),"MMMM"),$CA:$CB,2,0) & TEXT(IF(MONTH(TODAY())<=3,DATE(YEAR(TODAY())-1,4,1),DATE(YEAR(TODAY()),4,1)),"[$-4000000]yyyy")

    As per my post #2 !!
    Last edited by JohnTopley; 04-09-2017 at 03:17 PM.

  9. #9
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to get month and year of previous and current financial year?

    Hi John,
    Thank you. It's correct for current fy and wrong for previous fy. Please see the attached workbook. The required output is in column 'BC'.

    Thank you.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to get month and year of previous and current financial year?

    Hi Glenn,

    Thank you. It's working fine for first month-year of previous year but how to get last month-year of previous fy? How to combine it with 'vlookup and text' formula to get output in local language? It's giving output in English.
    Please Login or Register  to view this content.
    Thank you.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to get month and year of previous and current financial year?

    If you re-read my post you will see that I said that I had used FOUR independent formulae. Did you look at the sheet in my previous post?

    I stopped looking at this thread after John joined in. So, please open the sheet to see the FOUR formula, that are variants of this one:

    =VLOOKUP(TEXT(IF(MONTH(TODAY())>=4,DATE(YEAR(TODAY())-1,4,1),DATE(YEAR(TODAY())-2,4,1)),"mmmm"),$CA$2:$CB$13,2,FALSE)&" "&TEXT(IF(MONTH(TODAY())>=4,DATE(YEAR(TODAY())-1,4,1),DATE(YEAR(TODAY())-2,4,1)),"[$-4000000]yyyy")

    Can you see the Hindi script for all of the months?? I can only see April.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 04-10-2017 at 02:18 AM.

  12. #12
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to get month and year of previous and current financial year?

    Hi Glenn,
    Perfect! Thank you. It's working fine. I have not written April in Hindi so you can not see it. Now in my original workbook it's written; working fine.

    Thank you to both of you for your kind assistance.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to get month and year of previous and current financial year?

    You're welcome!!

  14. #14
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to get month and year of previous and current financial year?

    Hi Glenn,

    Sorry for trouble. What change should I do in the following formula to get output 'March 2016' in local language?
    Please Login or Register  to view this content.
    I changed '-1' to '-2' but in vain so I posted it here for your assistance.

    Thank you.

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: How to get month and year of previous and current financial year?

    What result are you getting as Glenn's formula all use the same lookup: what is different from post #12???

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to get month and year of previous and current financial year?

    Post 12, BC3 = March 2016??? What is the problem??

  17. #17
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to get month and year of previous and current financial year?

    @John,
    Please don't be angry. I appreciate you for your time to time assistance to solve the problems. Yours are also correct suggestion.
    Please don't mind.

    @Glenn,
    BC3 output is March 2017 I require March 2016.

    Thank you to both of you and have a nice time.

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to get month and year of previous and current financial year?

    I was a bit confused at Post 16. yes it does give March 2017. But... MSO3, surely you are WRONG. March 2017 is the correct answer.

    We are NOW in the 17/18 financial year (remember the formula is based on TODAY's date). So the previous FY started in April 2016 (BC2) and ended in March 2017 (BC3). That is what you asked for (BA2 and BA3). If that is not what you had intended to ask for... then try again.
    Last edited by Glenn Kennedy; 04-11-2017 at 04:42 AM.

  19. #19
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: How to get month and year of previous and current financial year?

    Hi Glenn,
    Sorry for confusion. Yes, you are right. The formulas are correct as per my request/requirement. Now to get the second previous year balance I require the fy 'April 2015 March 2016' I require a formula which has nothing to do with the formulas you provided before. It's a totally new request which is a continuation of this post so I posted it here instead of starting a new thread for a single formula.

    Hope it will clear your confusion.

    Thank you.

  20. #20
    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,830

    Re: How to get month and year of previous and current financial year?

    MSO3 - in these circumstances, as it is a different request, you should start a new thread. By all means provide a link back to this one for reference, but make sure that you state your requirements in full in the new thread.

    This thread will now be closed. Thanks for your co-operation.
    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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Current year and month and Previous and year
    By Anjukeerthi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-24-2014, 01:23 AM
  2. Change year but keep the month the same based on current year
    By Jamon Fries in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2014, 05:29 PM
  3. Formula to compare previous year to current year
    By bjnockle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-08-2013, 04:23 PM
  4. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  5. [SOLVED] Keeping a date as current year, even though formula determines previous year
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 08:31 PM
  6. Current Year & Month Name, Previous Year & Month Name
    By mithesh in forum Excel General
    Replies: 9
    Last Post: 10-21-2011, 07:00 AM
  7. Replies: 0
    Last Post: 04-18-2006, 02:10 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