Calc QUARTER function

Returns the quarter of a date represented by a serial number. The quarter is given as an integer, ranging from 1 (January) to 4 (December).

Help CentreFunctions & Formulas

For a full list of available calculation functions, please read What calculation functions are supported.

This article describes the formula syntax and usage of the QUARTER function.


Description

Returns the quarter of a date represented by a serial number. The quarter is given as an integer, ranging from 1 (January) to 4 (December).


Syntax

QUARTER(serial_number)


The QUARTER function syntax has the following arguments:
  • Serial_number Required. The date of the quarter you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.

Remarks

  • Values returned by the YEAR, QUARTER, MONTH, DAY, HOUR, MINUTE and SECOND functions will be Gregorian values regardless of the display format for the supplied date value. For example, if the display format of the supplied date is Hijri, the returned values for the YEAR, QUARTER, MONTH, DAY, HOUR, MINUTE and SECOND functions will be values associated with the equivalent Gregorian date.

Example

FormulaDescriptionResult
=QUARTER({date})Month of the date variable (assuming the variable is 2008-10-20)4
=QUARTER(2010-03-13)Month of the date1

Errors

For a full list of formula errors, please read Formula errors.


Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.