Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Excel fill with averages

I am trying to convert monthly data into quarterly data. So, I am
trying to average the numbers from each month composing the quarters,
and then pick-up from the following month. I guess this is better
explained in a formula. The formulas for two consecutive rows should
be:

=AVERAGE(Monthly!C2:C5)
=AVERAGE(Monthly!C6:C9)

So, the first number of the second row should be the next one after
the first row started and they will always add 4 numbers (rows).

But, if I try to get excel to fill in the data, I get (which is not
what I want):

=AVERAGE(Monthly!C2:C5)
=AVERAGE(Monthly!C3:C6)

This is quite a long spreadsheet, so it would be really great if I
could automate the process. I am thinking I need to use OFFSET, but I
don't know how to exactly. Could you please help me?

Thank you very much,
David Santos

P.S.: By the way, my thesis is due in about 20 hours, so this a very
time-sensitive matter :)

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Excel fill with averages

Try something like this:

A2:
=AVERAGE(INDEX(Monthly!$C:$C,(ROW()-2)*4+2):INDEX(Monthly!$C:$C,(ROW()-2)*4+3))

Copy that formula down as far as you need

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

I am trying to convert monthly data into quarterly data. So, I am
trying to average the numbers from each month composing the quarters,
and then pick-up from the following month. I guess this is better
explained in a formula. The formulas for two consecutive rows should
be:

=AVERAGE(Monthly!C2:C5)
=AVERAGE(Monthly!C6:C9)

So, the first number of the second row should be the next one after
the first row started and they will always add 4 numbers (rows).

But, if I try to get excel to fill in the data, I get (which is not
what I want):

=AVERAGE(Monthly!C2:C5)
=AVERAGE(Monthly!C3:C6)

This is quite a long spreadsheet, so it would be really great if I
could automate the process. I am thinking I need to use OFFSET, but I
don't know how to exactly. Could you please help me?

Thank you very much,
David Santos

P.S.: By the way, my thesis is due in about 20 hours, so this a very
time-sensitive matter :)


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Excel fill with averages

Using OFFSET

=AVERAGE(OFFSET($C$2,ROWS($A$1:A1)*4-4,,4,))

however it is a volatile formula which will slow down the workbook

=AVERAGE(INDEX(C:C,ROWS($A$1:A1)*4-2):INDEX(C:C,ROWS($A$1:A1)*4+1))

should work as well and is non volatile

--
Regards,

Peo Sjoblom


wrote in message
oups.com...
I am trying to convert monthly data into quarterly data. So, I am
trying to average the numbers from each month composing the quarters,
and then pick-up from the following month. I guess this is better
explained in a formula. The formulas for two consecutive rows should
be:

=AVERAGE(Monthly!C2:C5)
=AVERAGE(Monthly!C6:C9)

So, the first number of the second row should be the next one after
the first row started and they will always add 4 numbers (rows).

But, if I try to get excel to fill in the data, I get (which is not
what I want):

=AVERAGE(Monthly!C2:C5)
=AVERAGE(Monthly!C3:C6)

This is quite a long spreadsheet, so it would be really great if I
could automate the process. I am thinking I need to use OFFSET, but I
don't know how to exactly. Could you please help me?

Thank you very much,
David Santos

P.S.: By the way, my thesis is due in about 20 hours, so this a very
time-sensitive matter :)



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 112
Default Excel fill with averages

generate a pivot table. Put the date in the row field and the data in the
data field. Select an item in the row field (shoul be a date) select group in
the new windows select group by: quarter.
Select a data items right click - select Field setting. in the open windows
under summarize by: select Average.
this should do the job.
Andrea

" wrote:

I am trying to convert monthly data into quarterly data. So, I am
trying to average the numbers from each month composing the quarters,
and then pick-up from the following month. I guess this is better
explained in a formula. The formulas for two consecutive rows should
be:

=AVERAGE(Monthly!C2:C5)
=AVERAGE(Monthly!C6:C9)

So, the first number of the second row should be the next one after
the first row started and they will always add 4 numbers (rows).

But, if I try to get excel to fill in the data, I get (which is not
what I want):

=AVERAGE(Monthly!C2:C5)
=AVERAGE(Monthly!C3:C6)

This is quite a long spreadsheet, so it would be really great if I
could automate the process. I am thinking I need to use OFFSET, but I
don't know how to exactly. Could you please help me?

Thank you very much,
David Santos

P.S.: By the way, my thesis is due in about 20 hours, so this a very
time-sensitive matter :)


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Excel fill with averages

Hi everyone,

Thanks for all your comments. I ended up using the Pivot Table (I
should have thought about that to begin with), but I did learn how to
use OFFSET and INDEX as well.

Best,
David

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
averages in excel Ash Excel Worksheet Functions 1 March 10th 06 12:47 PM
Excel Averages III Weave Excel Discussion (Misc queries) 14 November 26th 05 01:00 AM
Excel Averages Weave Excel Discussion (Misc queries) 1 November 25th 05 05:37 PM
The fill feature in Excel that gives option to fill or copy KAHelman New Users to Excel 1 July 29th 05 08:47 PM
How to fill colour in Excel, it appers No fill in my computer? bede Excel Discussion (Misc queries) 1 June 11th 05 04:27 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"