A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Quarters



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2009, 05:06 AM posted to microsoft.public.excel.worksheet.functions
pal
external usenet poster
 
Posts: 209
Default Quarters

I have a few hundred rows, one of the columns has a date, the other column a
number value. I want to group the dates by quarters (the range is 3 years
back to 07, but will grow over time). Is there a way to look at the date and
assign it a quarter year (Q1, '07). I will make the assigment in another
column. I assume I can get the averages for a given quarter via an array.

Thanks.
  #2  
Old April 16th, 2009, 05:24 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Quarters

Suppose A1 = Date. Use the below formula

="Q" & ROUNDUP(MONTH(A1)/3,0) & ", '" & RIGHT(YEAR(A1),2)

If this post helps click Yes
---------------
Jacob Skaria


"PAL" wrote:

I have a few hundred rows, one of the columns has a date, the other column a
number value. I want to group the dates by quarters (the range is 3 years
back to 07, but will grow over time). Is there a way to look at the date and
assign it a quarter year (Q1, '07). I will make the assigment in another
column. I assume I can get the averages for a given quarter via an array.

Thanks.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.