• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Extract a 'Reporting Year' from date

Kellis

Member
Hi,

Need some expert guidance on the best way forward to extract a Year (Reporting year) from a date. I.e RY 2015 runs from April 1st 2015 to 31st March 2016. I have a list of dates i.e. 02/04/15 which I need to extract a RY 2015 another date 02/04/2014 would be RY 2014. Any suggestions?

Thanks
 
Thanks, that is not suitable. The reporting year starts in April and runs till March I need a away of converting, working it out and I cannot think of a way to break it down. I.e If month between April and March in 2014 RY will be 2014, if date between April 2015 and March 2015 RY will be 2015. I just cannot think of the way forward.
 
I should have read your entire post :) Sorry... Can you upload a sample... I have an idea...
 
See if this works for you... I took the date year * 100 + month and then did a match against a table with an index to retrieve the desired year...
 

Attachments

  • CalendarYear.xlsx
    9.9 KB · Views: 5
Back
Top