Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel convert date to Quarer and Fiscal Year

Posted on 2016-08-22
2
Medium Priority
?
189 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 48

Assisted Solution

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

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

Accepted Solution

by:
Rob Henson earned 1600 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

963 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