PC Review


Reply
Thread Tools Rate Thread

Calc. Avg. Instead of SUMPRODUCT

 
 
=?Utf-8?B?c2FoYWZp?=
Guest
Posts: n/a
 
      14th Sep 2006
I have a 'Sumproduct' function working fine on my Excel file, but I need to
use similar method, this time to do the average instead of sum. I need to
evaluate about 4 criteria, then average the numbers from another column. I
know there's no such: AverageProduct function. I have tried to use the
Average(--(sheet1!$A$2:$A$10000=sheet2$M$8)*(sheet1!$B$2:$B$10000=sheet2$A11)-----*(sheet1!$I$2:$I$10000)).
The formula runs ok, but it gets only a value on one row instead of averaging
out all the values on multiple rows.
Is there another way/function of doing this?
Any direction is very much appreciated.

Thanks.
--
when u change the way u look @ things, the things u look at change.
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      14th Sep 2006
The formula =SUMPRODUCT(--(A1:A100=$F$10), --(B1:B100=%F$11), C1:C100)
will SUM all the C cells having A values equal to F10 and B values equal to
F11
The formula =SUMPRODUCT(--(A1:A100=$F$10), --(B1:B100=%F$11))
will COUNT all the records for which A values equal to F10 and B values
equal to F11
So one over the other will give the average
=SUMPRODUCT(--(A1:A100=$F$10), --(B1:B100=%F$11),
C1:C100)/=SUMPRODUCT(--(A1:A100=$F$10), --(B1:B100=%F$11))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"sahafi" <(E-Mail Removed)> wrote in message
news50F071A-1CE1-4130-AAC6-(E-Mail Removed)...
>I have a 'Sumproduct' function working fine on my Excel file, but I need to
> use similar method, this time to do the average instead of sum. I need to
> evaluate about 4 criteria, then average the numbers from another column. I
> know there's no such: AverageProduct function. I have tried to use the
> Average(--(sheet1!$A$2:$A$10000=sheet2$M$8)*(sheet1!$B$2:$B$10000=sheet2$A11)-----*(sheet1!$I$2:$I$10000)).
> The formula runs ok, but it gets only a value on one row instead of
> averaging
> out all the values on multiple rows.
> Is there another way/function of doing this?
> Any direction is very much appreciated.
>
> Thanks.
> --
> when u change the way u look @ things, the things u look at change.



 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      14th Sep 2006
Hi!

Try it like this:

=AVERAGE(IF((rng1=criteria1)*(rng2=criteria2)*(rng3=criteria3)*(rng4=criteria4),rng_to_avg))

This is an array formula. It must be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER).

Biff

"sahafi" <(E-Mail Removed)> wrote in message
news50F071A-1CE1-4130-AAC6-(E-Mail Removed)...
>I have a 'Sumproduct' function working fine on my Excel file, but I need to
> use similar method, this time to do the average instead of sum. I need to
> evaluate about 4 criteria, then average the numbers from another column. I
> know there's no such: AverageProduct function. I have tried to use the
> Average(--(sheet1!$A$2:$A$10000=sheet2$M$8)*(sheet1!$B$2:$B$10000=sheet2$A11)-----*(sheet1!$I$2:$I$10000)).
> The formula runs ok, but it gets only a value on one row instead of
> averaging
> out all the values on multiple rows.
> Is there another way/function of doing this?
> Any direction is very much appreciated.
>
> Thanks.
> --
> when u change the way u look @ things, the things u look at change.



 
Reply With Quote
 
=?Utf-8?B?c2FoYWZp?=
Guest
Posts: n/a
 
      14th Sep 2006
Bill and Bernard, thank you both. I managed to get it to work as:

IF(ISERROR(AVERAGE(IF(COL1=W8,IF(COL1=A11,IF(COL3=B11,IF(COL4=V8,COL5))))),"0",AVERAGE(IF---------------------------))))))

and it worked perfectly.

Thanks.
--
when u change the way u look @ things, the things u look at change.


"Biff" wrote:

> Hi!
>
> Try it like this:
>
> =AVERAGE(IF((rng1=criteria1)*(rng2=criteria2)*(rng3=criteria3)*(rng4=criteria4),rng_to_avg))
>
> This is an array formula. It must be entered using the key combination of
> CTRL,SHIFT,ENTER (not just ENTER).
>
> Biff
>
> "sahafi" <(E-Mail Removed)> wrote in message
> news50F071A-1CE1-4130-AAC6-(E-Mail Removed)...
> >I have a 'Sumproduct' function working fine on my Excel file, but I need to
> > use similar method, this time to do the average instead of sum. I need to
> > evaluate about 4 criteria, then average the numbers from another column. I
> > know there's no such: AverageProduct function. I have tried to use the
> > Average(--(sheet1!$A$2:$A$10000=sheet2$M$8)*(sheet1!$B$2:$B$10000=sheet2$A11)-----*(sheet1!$I$2:$I$10000)).
> > The formula runs ok, but it gets only a value on one row instead of
> > averaging
> > out all the values on multiple rows.
> > Is there another way/function of doing this?
> > Any direction is very much appreciated.
> >
> > Thanks.
> > --
> > when u change the way u look @ things, the things u look at change.

>
>
>

 
Reply With Quote
 
=?Utf-8?B?c2FoYWZp?=
Guest
Posts: n/a
 
      14th Sep 2006
Sorry, I meant Biff.
--
when u change the way u look @ things, the things u look at change.


"Biff" wrote:

> Hi!
>
> Try it like this:
>
> =AVERAGE(IF((rng1=criteria1)*(rng2=criteria2)*(rng3=criteria3)*(rng4=criteria4),rng_to_avg))
>
> This is an array formula. It must be entered using the key combination of
> CTRL,SHIFT,ENTER (not just ENTER).
>
> Biff
>
> "sahafi" <(E-Mail Removed)> wrote in message
> news50F071A-1CE1-4130-AAC6-(E-Mail Removed)...
> >I have a 'Sumproduct' function working fine on my Excel file, but I need to
> > use similar method, this time to do the average instead of sum. I need to
> > evaluate about 4 criteria, then average the numbers from another column. I
> > know there's no such: AverageProduct function. I have tried to use the
> > Average(--(sheet1!$A$2:$A$10000=sheet2$M$8)*(sheet1!$B$2:$B$10000=sheet2$A11)-----*(sheet1!$I$2:$I$10000)).
> > The formula runs ok, but it gets only a value on one row instead of
> > averaging
> > out all the values on multiple rows.
> > Is there another way/function of doing this?
> > Any direction is very much appreciated.
> >
> > Thanks.
> > --
> > when u change the way u look @ things, the things u look at change.

>
>
>

 
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
Sumproduct and speed of Calc. Lee Microsoft Excel Worksheet Functions 4 24th May 2007 07:04 PM
sumproduct date calc. =?Utf-8?B?VG9kZA==?= Microsoft Excel Worksheet Functions 4 16th Nov 2006 03:12 AM
SUMPRODUCT calc question PerryClisbee Microsoft Excel Worksheet Functions 1 5th Aug 2006 12:00 AM
auto calc on, but have to edit (f2) cells to force re-calc..help! =?Utf-8?B?Q3VydA==?= Microsoft Excel Worksheet Functions 3 13th Feb 2006 06:05 PM
Re: Pivot Tables: Calc Items vs. Calc Fields Lady Layla Microsoft Excel Misc 2 10th May 2004 01:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:04 PM.