ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel should have a QUARTER formula for DATE calculations (https://www.excelbanter.com/excel-worksheet-functions/113342-excel-should-have-quarter-formula-date-calculations.html)

Jeff Stubing

Excel should have a QUARTER formula for DATE calculations
 
Excel should have a built in QUARTER function which allows users to calculate
the QUARTER in which a transaction occurs based on the date of the
transaction.

Ex: =QUARTER(J2) where cell J2 holds a date.

You have it for MONTH, DAY, and YEAR why not for QUARTER for those of us in
the financial world?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

Biff

Excel should have a QUARTER formula for DATE calculations
 
Easy enough:

=CEILING(MONTH(J2)/3,1)

For robustness:

=IF(ISNUMBER(J2),CEILING(MONTH(D2)/3,1),"")

Biff

"Jeff Stubing" <Jeff wrote in message
...
Excel should have a built in QUARTER function which allows users to
calculate
the QUARTER in which a transaction occurs based on the date of the
transaction.

Ex: =QUARTER(J2) where cell J2 holds a date.

You have it for MONTH, DAY, and YEAR why not for QUARTER for those of us
in
the financial world?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions



Dana DeLouis

Excel should have a QUARTER formula for DATE calculations
 
Strangely, vba has a format for "Quarter," but the worksheet does not.

Debug.Print Format(Now, "q")
returns: 4
(For October)

--
Dana DeLouis
Windows XP & Office 2003


"Jeff Stubing" <Jeff wrote in message
...
Excel should have a built in QUARTER function which allows users to
calculate
the QUARTER in which a transaction occurs based on the date of the
transaction.

Ex: =QUARTER(J2) where cell J2 holds a date.

You have it for MONTH, DAY, and YEAR why not for QUARTER for those of us
in
the financial world?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions



JMB

Excel should have a QUARTER formula for DATE calculations
 
But, fiscal years don't have to have the same start/end dates as calendar
years. For example, the U.S. Federal Fiscal Year is 10/1 - 9/30. In some
cases, an entities fiscal period can be more or less than 12 months. Also,
I've seen some entities define their fiscal year in days (360 or 365 - I
don't remember exactly), but I do remember their FYB sometimes was in
January, sometimes in December (and I don't recall whether or not the
quarters broke on the same date every year).

Where H5 has the FYB, and J8 has the date in question, I think this will
address the issue of the fiscal year not matching the calendar year
=IF(J8<=EOMONTH(H5,11),MATCH(J8,DATE(YEAR(H5),MONT H(H5)+{0,3,6,9},1)),"")

array entered, but it's still incomplete as it doesn't address other
possible scenarios.

"Biff" wrote:

Easy enough:

=CEILING(MONTH(J2)/3,1)

For robustness:

=IF(ISNUMBER(J2),CEILING(MONTH(D2)/3,1),"")

Biff

"Jeff Stubing" <Jeff wrote in message
...
Excel should have a built in QUARTER function which allows users to
calculate
the QUARTER in which a transaction occurs based on the date of the
transaction.

Ex: =QUARTER(J2) where cell J2 holds a date.

You have it for MONTH, DAY, and YEAR why not for QUARTER for those of us
in
the financial world?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions




Biff

Excel should have a QUARTER formula for DATE calculations
 
That's probably why there isn't a Quarter function!

Biff

"JMB" wrote in message
...
But, fiscal years don't have to have the same start/end dates as calendar
years. For example, the U.S. Federal Fiscal Year is 10/1 - 9/30. In some
cases, an entities fiscal period can be more or less than 12 months.
Also,
I've seen some entities define their fiscal year in days (360 or 365 - I
don't remember exactly), but I do remember their FYB sometimes was in
January, sometimes in December (and I don't recall whether or not the
quarters broke on the same date every year).

Where H5 has the FYB, and J8 has the date in question, I think this will
address the issue of the fiscal year not matching the calendar year
=IF(J8<=EOMONTH(H5,11),MATCH(J8,DATE(YEAR(H5),MONT H(H5)+{0,3,6,9},1)),"")

array entered, but it's still incomplete as it doesn't address other
possible scenarios.

"Biff" wrote:

Easy enough:

=CEILING(MONTH(J2)/3,1)

For robustness:

=IF(ISNUMBER(J2),CEILING(MONTH(D2)/3,1),"")

Biff

"Jeff Stubing" <Jeff wrote in message
...
Excel should have a built in QUARTER function which allows users to
calculate
the QUARTER in which a transaction occurs based on the date of the
transaction.

Ex: =QUARTER(J2) where cell J2 holds a date.

You have it for MONTH, DAY, and YEAR why not for QUARTER for those of
us
in
the financial world?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the
"I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and
then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions






JMB

Excel should have a QUARTER formula for DATE calculations
 
That's pretty much where I was going with it. Although I think the OP was
wanting calendar year - which I doubt can be made more elegant than your
solution.

"Biff" wrote:

That's probably why there isn't a Quarter function!

Biff

"JMB" wrote in message
...
But, fiscal years don't have to have the same start/end dates as calendar
years. For example, the U.S. Federal Fiscal Year is 10/1 - 9/30. In some
cases, an entities fiscal period can be more or less than 12 months.
Also,
I've seen some entities define their fiscal year in days (360 or 365 - I
don't remember exactly), but I do remember their FYB sometimes was in
January, sometimes in December (and I don't recall whether or not the
quarters broke on the same date every year).

Where H5 has the FYB, and J8 has the date in question, I think this will
address the issue of the fiscal year not matching the calendar year
=IF(J8<=EOMONTH(H5,11),MATCH(J8,DATE(YEAR(H5),MONT H(H5)+{0,3,6,9},1)),"")

array entered, but it's still incomplete as it doesn't address other
possible scenarios.

"Biff" wrote:

Easy enough:

=CEILING(MONTH(J2)/3,1)

For robustness:

=IF(ISNUMBER(J2),CEILING(MONTH(D2)/3,1),"")

Biff

"Jeff Stubing" <Jeff wrote in message
...
Excel should have a built in QUARTER function which allows users to
calculate
the QUARTER in which a transaction occurs based on the date of the
transaction.

Ex: =QUARTER(J2) where cell J2 holds a date.

You have it for MONTH, DAY, and YEAR why not for QUARTER for those of
us
in
the financial world?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the
"I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and
then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions








All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com