Note: The other languages of the website are Google-translated. Back to English

How to calculate quarter and year from date in Excel?

If you have a column of date, now, you want to convert the date to quarter and year only to get the following result. Are there any quick ways to solve it in Excel?


Convert date to quarter and year with formula

Here is a simple formula can help you to calculate the quarter and year from the given date, please do as follows:

Enter the following formula into a blank cell where you want to output the calculate result, and then drag the fill handle down to the cells to apply this formula, and the date has been displayed in quarter and year format, see screenshot:

="Q" &INT((MONTH(A2)+2)/3) & "-" & YEAR(A2)


Convert date to quarter only with formula

If you just want to get the quarter from the given date, please apply the below formula:

="Q"&ROUNDUP(MONTH(A2)/3,0)

Then, drag the fill handle down to the cells for filling this formula, only the quarter is displayed based on the date, see screenshot:


Convert date to quarter and year with a handy feature

If you have Kutools for Excel, with its Convert date to quarter feature, you can get the quarter and year format from te specific dates without remembering any formulas.

Note:To apply these Convert date to quarter features, firstly, you should download the Kutools for Excel, and then apply the features quickly and easily.

After installing Kutools for Excel, please do as follows:

1. Click to select a cell where you want to output the result, see screenshot:

2. And then click Kutools > Formula Helper > Formula Helper, see screenshot:

3. In the Formulas Helper dialog box, please do the following operations:

  • Select Date from the Formula Type drop down list;
  • In the Choose a formula list box, click to select Convert date to quarter option;
  • Then, in the Arguments input section, select the cell containing the date that you want to convert in the Date textbox.
Tips: In the Date textbox, you should change the default absolute cell reference to relative cell reference for dragging the formula correctly.

4. And then, click Ok button, the first result will be calculated, then drag the fill handle for fill the formula to other cells, see screenshot:


Convert quarter and year to date with formula

Sometimes, you may want to convert the quarter and year format cells to the normal date which is the first day of quarter as below screenshot shown:

For getting the first day of quarter from the quarter and year cell, please apply the below formula:

=DATE(RIGHT(A2,4),(MID(A2,2,1)*3)-2,1)

Then, drag the fill handle down to the cells for filling this formula, and all the fist days of quarter have been extracted at once, see screenshot:


More relative articles:

  • Extract Month And Year Only From Date In Excel
  • If you have a list of date format, now, you want to extract only the month and year from date as left screenshot shown, how could you extract month and year from the date quickly and easily in Excel?
  • Sum Values Based On Month And Year In Excel
  • If you have a range of data, column A contains some dates and column B has the number of orders, now, you need to sum the numbers based on month and year from another column. In this case, I want to calculate the total orders of January 2016 to get the following result. And this article, I will talk about some tricks to solve this job in Excel.
  • Calculate Number Of Days In A Month Or A Year In Excel
  • As we all know, there are leap years and common years where leap year has 366 days and common year has 365 days. To calculate the number of days in a month or a year based on a date as below screenshot shown, this article will help you.

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (9)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
This was the first Fiscal conversion that actually worked. Tried a few others. Thanks!
This comment was minimized by the moderator on the site
Good stuff!
This comment was minimized by the moderator on the site
Mijn formules staan in het nederlands. Ik zou dus graag willen weten wat het nederlands equivalent is van "int" in deze formule.
This comment was minimized by the moderator on the site
="Q" &INTEGER((MAAND(A2)+2)/3) & "-" & JAAR(A2)
This comment was minimized by the moderator on the site
Very helpful, thank you
This comment was minimized by the moderator on the site
This formula works but I don't understand why. Can someone please explain? Thanks

="Q"&ROUNDUP(MONTH(B3)/3,0)
This comment was minimized by the moderator on the site
Hello, Dort,
The explanation of this formula is:
MONTH(B3):This MONTH function extracts the month number from the date cell;
MONTH(B3)/3: Divide by 3, the number 3 represents the months per quarter;
ROUNDUP(MONTH(B3)/3,0): This ROUNDUP function is used to round up the value to the nearest whole number;
"Q"&ROUNDUP(MONTH(B3)/3,0): If you would like to write Quarter or Q in front of each number, you can concatenate the numeric result from ROUNDUP with the text “Quarter “ or "Q" by using the & character.

Thank you!
This comment was minimized by the moderator on the site
感谢楼主分享,很有帮助。
三个月为一个季度,12个月除3=4就是四个季度, 但是1 月除以3=小数点,所以要roundup,不要小数点,例如 1、3=0.33,不满一个季度,显示季度一,因为他们属于季度1
Rated 5 out of 5
This comment was minimized by the moderator on the site
In case you want to find the Financial QTR in a Macro, Assuming that Date is on the LEFT COLUMN.

ActiveCell.FormulaR1C1 ="=IF(AND(MONTH(RC[-1])>=1,MONTH(RC[-1])<=3),"Q4",IF(AND(MONTH(RC[-1])>=4,MONTH(RC[-1])<=6),"Q1",IF(AND(MONTH(RC[-1])>=7,MONTH(RC[-1])<=9),"Q2","Q3")))"
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL