ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How about adding a quarterly function to Excel like its EOMonth? (https://www.excelbanter.com/excel-worksheet-functions/19855-how-about-adding-quarterly-function-excel-like-its-eomonth.html)

SDolley

How about adding a quarterly function to Excel like its EOMonth?
 
The EOMonth function is great. But what about creating a similar function for
determining the end of the current quarter that a specified date is in?

Bob Phillips

=DATE(YEAR(A2),(INT((MONTH(A2)-1)/3)+1)*3+1,0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SDolley" wrote in message
...
The EOMonth function is great. But what about creating a similar function

for
determining the end of the current quarter that a specified date is in?





All times are GMT +1. The time now is 04:21 AM.

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