PC Review


Reply
Thread Tools Rate Thread

Averaging numbers

 
 
Donduk
Guest
Posts: n/a
 
      18th Dec 2004
I have a long colum of numbers,in row A. I would like to average every 4
numbers such as 1-4, 2-6, 3-7, 4-8 etc. and have the answer show in row B
next to the last averaged number. Can someone help me..


 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      18th Dec 2004
One way:

B1: =IF(MOD(ROW(),4)=0,AVERAGE(OFFSET(A1,-3,0,4,1)),"")

Copy down as far as needed.



In article <0aXwd.195922$(E-Mail Removed)>,
"Donduk" <(E-Mail Removed)> wrote:

> I have a long colum of numbers,in row A. I would like to average every 4
> numbers such as 1-4, 2-6, 3-7, 4-8 etc. and have the answer show in row B
> next to the last averaged number. Can someone help me..

 
Reply With Quote
 
Bernd Plumhoff
Guest
Posts: n/a
 
      19th Dec 2004
=SUM(INDEX(A1:A4,0):INDEX(A1:A4,0))/4

into cell B4. Is not volatile and works if you move rows.

HTH,
Bernd


 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      19th Dec 2004
Isn't this the same thing:

=SUM(A1:A4)/4

In B4, and drag down to copy?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Bernd Plumhoff" <(E-Mail Removed)> wrote in message
news:cq36jf$1pv$04$(E-Mail Removed)...
> =SUM(INDEX(A1:A4,0):INDEX(A1:A4,0))/4
>
> into cell B4. Is not volatile and works if you move rows.
>
> HTH,
> Bernd
>
>


 
Reply With Quote
 
Bernd Plumhoff
Guest
Posts: n/a
 
      20th Dec 2004
Hi Ragdyer,

You are right. If we want to be independent to insertion of rows (which
means if we want to have an average of this row and the 3 previous rows in
column A) we need =SUM(INDEX(A:A,ROW()-3):INDEX(A:A;A4))/4 I think :-)

Regards,
Bernd


 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      20th Dec 2004
I'm sorry, but perhaps today I'm a little more dense then I usually am.
I don't see your point in the necessity of using Index().
Besides, I couldn't get your formula to work.

How about this one:

=AVERAGE(INDIRECT("A"&ROW()-3&":A"&ROW()))
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


"Bernd Plumhoff" <(E-Mail Removed)> wrote in message
news:cq51po$ceg$03$(E-Mail Removed)...
> Hi Ragdyer,
>
> You are right. If we want to be independent to insertion of rows (which
> means if we want to have an average of this row and the 3 previous rows in
> column A) we need =SUM(INDEX(A:A,ROW()-3):INDEX(A:A;A4))/4 I think :-)
>
> Regards,
> Bernd
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
averaging numbers Jeff@nospam.invalid Microsoft Excel Discussion 5 20th Jan 2011 09:38 PM
Averaging Letters and Numbers alistair.douglas@gmail.com Microsoft Excel Programming 1 25th Sep 2006 03:14 PM
RE: Averaging Only the X Highest Numbers in a Row =?Utf-8?B?Um9uIENvZGVycmU=?= Microsoft Excel Worksheet Functions 4 10th Jun 2006 03:15 PM
Averaging Numbers with totals =?Utf-8?B?SW5xdWlyaW5nIE1pbmRz?= Microsoft Access 8 7th Jan 2006 01:02 AM
Re: Averaging Numbers when 2 numbers in one cell =?Utf-8?B?T3VyYW5pYQ==?= Microsoft Excel Worksheet Functions 1 12th Jan 2005 07:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:55 AM.