Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2006

Tip: Looking for answers? Try searching our database.

max of average

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dmatrix00d@gmail.com - 28 Nov 2006 19:21 GMT
how would you take the max of an average in a situation such as this:

1 2 3
3 4 2
2 3 4

I want to average the rows, and then find the max of each of those
averages.

naturally this should be 3.

i think you have to use one of those control shift enter formulas, but
i'm not sure.
T. Valko - 28 Nov 2006 19:38 GMT
Try this:

Array entered ("one of those control shift enter formulas")

=MAX(SUBTOTAL(1,OFFSET(A1:C3,ROW(A1:C3)-ROW(A1),,1)))

Biff

> how would you take the max of an average in a situation such as this:
>
[quoted text clipped - 9 lines]
> i think you have to use one of those control shift enter formulas, but
> i'm not sure.
dmatrix00d@gmail.com - 28 Nov 2006 20:23 GMT
wow that worked.
can you explain to me why for future purposes?

thank you very much

> Try this:
>
[quoted text clipped - 17 lines]
> > i think you have to use one of those control shift enter formulas, but
> > i'm not sure.
T. Valko - 28 Nov 2006 21:52 GMT
The Subtotal function gets the average of each row and passes those averages
to the Max function.

The Offset tells the Subtotal which cells to average.

ROW(A1:C3)-ROW(A1) tells the Offset where to find the cells to average:
offset the range by 0,1,2 rows.

So:

Average(A1:C3, Offset 0 rows and 0 columns 1 row high)
Average(A1:C3, Offset 1 rows and 0 columns 1 row high)
Average(A1:C3, Offset 2 rows and 0 columns 1 row high)

This is what it would look like:

=MAX(AVERAGE(A1:C1),AVERAGE(A2:C2),AVERAGE(A3:C3))

If you only had 3 rows of data you'd be better off using the above formula.
(less complicated, not an array, not volatile)

Biff

> wow that worked.
> can you explain to me why for future purposes?
[quoted text clipped - 22 lines]
>> > i think you have to use one of those control shift enter formulas, but
>> > i'm not sure.
driller - 28 Nov 2006 21:58 GMT
dmatrix'

using Valko's concept

try this for a productive array Rows x Columns = range <defined name>

=MAX(SUBTOTAL(1,OFFSET(range,ROW(range)-MIN(ROW(range)),,1)))

note: you can insert or reduce <rows or columns> but there should be no
completely blank row.

dont forget the ctrl-shft-enter on the formula when you resize the range.

> wow that worked.
> can you explain to me why for future purposes?
[quoted text clipped - 22 lines]
> > > i think you have to use one of those control shift enter formulas, but
> > > i'm not sure.
Teethless mama - 28 Nov 2006 20:38 GMT
=MAX(AVERAGE(A1:A3),AVERAGE(B1:B3),AVERAGE(C1:C3))

> how would you take the max of an average in a situation such as this:
>
[quoted text clipped - 9 lines]
> i think you have to use one of those control shift enter formulas, but
> i'm not sure.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.