ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula for Dates (https://www.excelbanter.com/excel-discussion-misc-queries/245721-formula-dates.html)

KC

Formula for Dates
 
Cell L4 has a date in it, I'd like a formula that can look at the date and
return the quarter & year. For instance 10/15/2009 would be 3Q2009,
03/12/2010 would be 1Q2010. Thanks very much!

Mike H

Formula for Dates
 
Hi,

I'm not sure what you want, to return the quarter use

=INT((MONTH(A1)-1)/3)+1

to return your string use

=INT((MONTH(A1)-1)/3)+1&"Q"&YEAR(A1)

Mike

"KC" wrote:

Cell L4 has a date in it, I'd like a formula that can look at the date and
return the quarter & year. For instance 10/15/2009 would be 3Q2009,
03/12/2010 would be 1Q2010. Thanks very much!


Lars-Åke Aspelin[_2_]

Formula for Dates
 
On Fri, 16 Oct 2009 13:06:01 -0700, KC
wrote:

Cell L4 has a date in it, I'd like a formula that can look at the date and
return the quarter & year. For instance 10/15/2009 would be 3Q2009,
03/12/2010 would be 1Q2010. Thanks very much!


Try this formula:

=INT((MONTH(L4)-1)/3+1)&"Q"&YEAR(L4)

October 15 will be Q4, not Q3, though.

Hope this helps / Lars-Åke

Bernd P

Formula for Dates
 
=INT((MONTH(L4)+2)/3)&"Q"&YEAR(L4)

Regards,
Bernd


All times are GMT +1. The time now is 10:05 AM.

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