Excel fill with averages

D

davidbr55

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 :)
 
G

Guest

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
 
P

Peo Sjoblom

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
 
G

Guest

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
 
D

davidbr55

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Formulas 4
Help with an Excel formula? 3
Excel Fill issue 2
how to average row averages 3
average with error 7
Computing Averages For Daily Sales 4
Sum months into quarters? 3
averages in pivot table 4

Top