PC Review


Reply
Thread Tools Rate Thread

Calculating an average with conditions.

 
 
=?Utf-8?B?UmViZWthaA==?=
Guest
Posts: n/a
 
      12th Sep 2007
I have two columns of data, one of which I need to calculate an average of
but only if the data in the 2nd column is of a certain value.
I can't work out how to do this...
For instance, I need to calculate the average number of calls taken within
week 37.
My columns look similar to:
No. of calls Week no.
10 37
8 38
4 37 etc
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      12th Sep 2007
This is an array formula that must be entered using ctrl+shift+enter at the
same time.

=AVERAGE(IF(M1:M3=37,L1:L3))
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Rebekah" <(E-Mail Removed)> wrote in message
news:0C353E9A-21C4-4FA6-96E6-(E-Mail Removed)...
>I have two columns of data, one of which I need to calculate an average of
> but only if the data in the 2nd column is of a certain value.
> I can't work out how to do this...
> For instance, I need to calculate the average number of calls taken within
> week 37.
> My columns look similar to:
> No. of calls Week no.
> 10 37
> 8 38
> 4 37 etc


 
Reply With Quote
 
=?Utf-8?B?UmViZWthaA==?=
Guest
Posts: n/a
 
      13th Sep 2007
This is returning #DIV/0!

Is this because the "No. of calls" column is also subject to a formula?



"Don Guillett" wrote:

> This is an array formula that must be entered using ctrl+shift+enter at the
> same time.
>
> =AVERAGE(IF(M1:M3=37,L1:L3))
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Rebekah" <(E-Mail Removed)> wrote in message
> news:0C353E9A-21C4-4FA6-96E6-(E-Mail Removed)...
> >I have two columns of data, one of which I need to calculate an average of
> > but only if the data in the 2nd column is of a certain value.
> > I can't work out how to do this...
> > For instance, I need to calculate the average number of calls taken within
> > week 37.
> > My columns look similar to:
> > No. of calls Week no.
> > 10 37
> > 8 38
> > 4 37 etc

>
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      14th Sep 2007
Worked on the data provided. Send me a workbook to the address below along
with these posts

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Rebekah" <(E-Mail Removed)> wrote in message
news:1C699235-A93E-45F0-9DF2-(E-Mail Removed)...
> This is returning #DIV/0!
>
> Is this because the "No. of calls" column is also subject to a formula?
>
>
>
> "Don Guillett" wrote:
>
>> This is an array formula that must be entered using ctrl+shift+enter at
>> the
>> same time.
>>
>> =AVERAGE(IF(M1:M3=37,L1:L3))
>> --
>> Don Guillett
>> Microsoft MVP Excel
>> SalesAid Software
>> (E-Mail Removed)
>> "Rebekah" <(E-Mail Removed)> wrote in message
>> news:0C353E9A-21C4-4FA6-96E6-(E-Mail Removed)...
>> >I have two columns of data, one of which I need to calculate an average
>> >of
>> > but only if the data in the 2nd column is of a certain value.
>> > I can't work out how to do this...
>> > For instance, I need to calculate the average number of calls taken
>> > within
>> > week 37.
>> > My columns look similar to:
>> > No. of calls Week no.
>> > 10 37
>> > 8 38
>> > 4 37 etc

>>
>>


 
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
Average with Conditions Curtis Microsoft Excel Worksheet Functions 1 13th May 2010 04:34 PM
Average with Conditions Curtis Microsoft Excel Worksheet Functions 3 10th Apr 2010 03:01 AM
average with conditions vinnie123 Microsoft Excel Programming 3 15th Mar 2006 10:26 AM
average on 2 conditions =?Utf-8?B?VGVkIE1ldHJv?= Microsoft Excel Worksheet Functions 6 7th Jan 2005 08:23 PM
average with some conditions ditchy Microsoft Excel Misc 14 18th Oct 2003 07:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 PM.