Solved

Excel convert date to Quarer and Fiscal Year

Posted on 2016-08-22
2
56 Views
Last Modified: 2016-08-23
I'm using the formula below to convert dates to fiscal quarter and fiscal year. The fiscal begins on 10/1 which is the first quarter. The formula is only converting the forth quarter of the fiscal. The output should be in the following format : Q4-2016
Any advice how to convert. Thanks



=IF(MONTH(D4)<=9,CHOOSE(MONTH(D4),"Q2","Q2","Q2","Q3","Q3","Q3",
"Q4","Q4","Q4","Q1","Q1","Q1")&"FY"&YEAR(D4),"FY"&YEAR(D4)+1)
0
Comment
Question by:shieldsco
2 Comments
 
LVL 47

Assisted Solution

by:Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs) earned 100 total points
ID: 41766266
Try this formula...

="Q" & MATCH(MONTH(D4-DATE(0,10,0)), {1,4,7,10}, 1) & "-" & YEAR(D4)
0
 
LVL 32

Accepted Solution

by:
Rob Henson earned 400 total points
ID: 41766571
Your IF statement is in the wrong place.  It is only going to the CHOOSE function when month is less than/equal to 9. For months 10 - 12 it is just doing the "FY"&YEAR(D4)+1

Try:

=CHOOSE(MONTH(D4),"Q2","Q2","Q2","Q3","Q3","Q3","Q4","Q4","Q4","Q1","Q1","Q1")&IF(MONTH(D4)<=9,"FY"&YEAR(D4),"FY"&YEAR(D4)+1)

Tried it with 21 Nov 2016 and it gives "Q1FY2017", is that correct?

Thanks
Rob
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question