Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel date format - quarter & year

Is it possible to change the cell format to display quarter and year q yyyy instead of dd-mm-yyyy?

like image 946
Michael Avatar asked Oct 31 '11 09:10

Michael


People also ask

How do you calculate Q1 Q2 Q3/Q4 in Excel?

Use the formula =QUARTILE (array, 1) in an empty box to calculate all quartiles in Excel at once. You can replace the array with a cell reference of the dataset. Moreover, number one represents Q1. You can write “2” to determine Q2, “3” to find Q3, and “4” to calculate Q4.

How do you get a quarter from a date?

To get quarter from a date, you simply need to divide the month by 3 and round up the result to the nearest integer. Since each quarter of the year consists of 3 months, dividing the month of a date by 3 returns the number of 3-month intervals.


1 Answers

No - quarters are not a customisable format

The closest I think you could get would be to use a formula which has two potential limitations

  1. in place of the current value
  2. which would then no longer be a date

=INDEX({"Mar","Jun","Sep","Dec"},ROUNDUP(MONTH(A1)/3,0))&TEXT(A1," yyyy")

will return the quarter (based on a calendar year) and year of a date in A1, i.e. for today's date Dec 2011

like image 171
brettdj Avatar answered Sep 20 '22 10:09

brettdj