PC Review


Reply
Thread Tools Rate Thread

Averaging non-continuous ranges

 
 
Paul Hyett
Guest
Posts: n/a
 
      12th Sep 2007
Hi,

I want to average a number of values that don't fall in one block, e.g.

A1
A4
A7
etc.

The problem being that there are more than 30 of them, and the Average
function is limited to 30 individual cells (or ranges) for my version of
Excel.

Is there any way I can work around this?

The cells will have a constant offset from each other, if that helps.
--
Regards,

Paul Hyett, Cheltenham
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      12th Sep 2007
There are two ways I can think of

1) Create a named range of the non-continuous range. In your formula put
=AVERAGE(myNamedRange) and replace with your range
2) Create a User Defined Function to calculate the average of the entered
range. This one is much more complicated than (1) above.
--
HTH,
Barb Reinhardt



"Paul Hyett" wrote:

> Hi,
>
> I want to average a number of values that don't fall in one block, e.g.
>
> A1
> A4
> A7
> etc.
>
> The problem being that there are more than 30 of them, and the Average
> function is limited to 30 individual cells (or ranges) for my version of
> Excel.
>
> Is there any way I can work around this?
>
> The cells will have a constant offset from each other, if that helps.
> --
> Regards,
>
> Paul Hyett, Cheltenham
>

 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      12th Sep 2007
Hi Paul

One way
Highlight the cells by holding down control as you click each one, and give
it a name e.g. MyRng by typing that into the Name box (left of column A and
above Row 1)

=Average(MyRng)

If there are too many cells to fit to one named range, create several and
use
=Average(MyRng1+MyRng2 etc...)

--
Regards
Roger Govier



"Paul Hyett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I want to average a number of values that don't fall in one block, e.g.
>
> A1
> A4
> A7
> etc.
>
> The problem being that there are more than 30 of them, and the Average
> function is limited to 30 individual cells (or ranges) for my version of
> Excel.
>
> Is there any way I can work around this?
>
> The cells will have a constant offset from each other, if that helps.
> --
> Regards,
>
> Paul Hyett, Cheltenham



 
Reply With Quote
 
RagDyeR
Guest
Posts: n/a
 
      12th Sep 2007
Try this which I sized for 40 cells:

=SUMPRODUCT((MOD(ROW(A1:A118)+2,3)=0)*A1:A118)/SUMPRODUCT((MOD(ROW(A1:A118)+2,3)=0)*(A1:A118<>""))

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

"Paul Hyett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Hi,

I want to average a number of values that don't fall in one block, e.g.

A1
A4
A7
etc.

The problem being that there are more than 30 of them, and the Average
function is limited to 30 individual cells (or ranges) for my version of
Excel.

Is there any way I can work around this?

The cells will have a constant offset from each other, if that helps.
--
Regards,

Paul Hyett, Cheltenham


 
Reply With Quote
 
RagDyeR
Guest
Posts: n/a
 
      12th Sep 2007
BTW,

If, in the future, your cells do *not* have a constant offset, you can still
reference *more* then 30 cells by simply enclosing the references in
*DOUBLE* parens.

=Average((1,2,3, ... 100,101, ...etc.))

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

"RagDyeR" <(E-Mail Removed)> wrote in message
news:e5%(E-Mail Removed)...
Try this which I sized for 40 cells:

=SUMPRODUCT((MOD(ROW(A1:A118)+2,3)=0)*A1:A118)/SUMPRODUCT((MOD(ROW(A1:A118)+2,3)=0)*(A1:A118<>""))

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

"Paul Hyett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Hi,

I want to average a number of values that don't fall in one block, e.g.

A1
A4
A7
etc.

The problem being that there are more than 30 of them, and the Average
function is limited to 30 individual cells (or ranges) for my version of
Excel.

Is there any way I can work around this?

The cells will have a constant offset from each other, if that helps.
--
Regards,

Paul Hyett, Cheltenham



 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      12th Sep 2007
Have you tried

=AVERAGE(A1,A4,A7)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Paul Hyett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I want to average a number of values that don't fall in one block, e.g.
>
> A1
> A4
> A7
> etc.
>
> The problem being that there are more than 30 of them, and the Average
> function is limited to 30 individual cells (or ranges) for my version of
> Excel.
>
> Is there any way I can work around this?
>
> The cells will have a constant offset from each other, if that helps.
> --
> Regards,
>
> Paul Hyett, Cheltenham


 
Reply With Quote
 
Paul Hyett
Guest
Posts: n/a
 
      12th Sep 2007
In message <e5#(E-Mail Removed)>, RagDyeR
<(E-Mail Removed)> writes

>Try this which I sized for 40 cells:
>
>=SUMPRODUCT((MOD(ROW(A1:A118)+2,3)=0)*A1:A118)/SUMPRODUCT((MOD(ROW(A1:A1
>=18)+2,3)=0)*(A1:A118<>""))
>

This looks interesting, although I'll have to read up on SUMPRODUCT &
MOD, as I like to understand formulas I'm using if I can.

Thanks for your help, and everyone else's too.
--
Paul Hyett, Cheltenham (change 'invalid83261' to 'blueyonder' to email me)
 
Reply With Quote
 
Paul Hyett
Guest
Posts: n/a
 
      12th Sep 2007
In message <(E-Mail Removed)>, Don Guillett
<(E-Mail Removed)> writes

>Have you tried
>
>=AVERAGE(A1,A4,A7)
>

Yes - but you're only allowed 30 cells, and - sods law - I have 31...
--
Paul Hyett, Cheltenham (change 'invalid83261' to 'blueyonder' to email me)
 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      12th Sep 2007
try this idea
=AVERAGE(AVERAGE(A1,A4,A7),AVERAGE(A10,A12))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Paul Hyett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In message <(E-Mail Removed)>, Don Guillett
> <(E-Mail Removed)> writes
>
>>Have you tried
>>
>>=AVERAGE(A1,A4,A7)
>>

> Yes - but you're only allowed 30 cells, and - sods law - I have 31...
> --
> Paul Hyett, Cheltenham (change 'invalid83261' to 'blueyonder' to email me)


 
Reply With Quote
 
Sandy Mann
Guest
Posts: n/a
 
      12th Sep 2007
Try enclosing it in double parenthesis:

>>=AVERAGE((A1,A4........,Z29,AA30,AB31))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(E-Mail Removed)
Replace @mailinator.com with @tiscali.co.uk


"Paul Hyett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In message <(E-Mail Removed)>, Don Guillett
> <(E-Mail Removed)> writes
>
>>Have you tried
>>
>>=AVERAGE(A1,A4,A7)
>>

> Yes - but you're only allowed 30 cells, and - sods law - I have 31...
> --
> Paul Hyett, Cheltenham (change 'invalid83261' to 'blueyonder' to email me)
>



 
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 ranges MMM Microsoft Excel Misc 2 14th Dec 2009 09:20 PM
Averaging two ranges on the same column (excluding zeros) NoviceUser Microsoft Excel Worksheet Functions 2 6th Aug 2009 04:16 AM
Averaging multiple ranges with #n/a values Anne Microsoft Excel Misc 0 13th Aug 2008 05:20 PM
Averaging ranges Brian Microsoft Excel Programming 3 23rd Jun 2006 04:18 PM
Averaging multiple ranges through multiselect listbox ZX210 Microsoft Excel Misc 1 14th Jun 2004 11:36 PM


Features
 

Advertising
 

Newsgroups
 


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