PC Review


Reply
Thread Tools Rate Thread

averaging a range

 
 
suprsonic
Guest
Posts: n/a
 
      4th May 2010
How do I average a range of numbers between two criteria? For instance, I'd
want to average only numbers greater than 5 and less than 15.
 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      4th May 2010
=(SUMIF(A1:A5,">5")-SUMIF(A1:A5,">=15"))/(COUNTIF(A1:A5,">5")-COUNTIF(A1:A5,">=15"))

In Excel 2007 and later you can use the AVERAGEIFS function

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"suprsonic" <(E-Mail Removed)> wrote in message
news:7D867D7F-1A94-4F26-ADA7-(E-Mail Removed)...
> How do I average a range of numbers between two criteria? For instance,
> I'd
> want to average only numbers greater than 5 and less than 15.


 
Reply With Quote
 
Fred Smith
Guest
Posts: n/a
 
      4th May 2010
If you have Excel 2007, use the Averageifs function, as in:
=AVERAGEIFS(C7:C11,C7:C11,">5",C7:C11,"<15")

Regards,
Fred

"suprsonic" <(E-Mail Removed)> wrote in message
news:7D867D7F-1A94-4F26-ADA7-(E-Mail Removed)...
> How do I average a range of numbers between two criteria? For instance,
> I'd
> want to average only numbers greater than 5 and less than 15.


 
Reply With Quote
 
Ashish Mathur
Guest
Posts: n/a
 
      6th May 2010
Hi,

Try this

=sumproduct((A2:A10>5)*(A2:A10<15)*(A2:A10))/sumproduct((A2:A10>5)*(A2:A10<15))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"suprsonic" <(E-Mail Removed)> wrote in message
news:7D867D7F-1A94-4F26-ADA7-(E-Mail Removed)...
> How do I average a range of numbers between two criteria? For instance,
> I'd
> want to average only numbers greater than 5 and less than 15.


 
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 times that are not in a range Nancy D Microsoft Excel Worksheet Functions 3 20th Apr 2010 05:19 PM
Some more help with code...Averaging a range stephentebaldi@gmail.com Microsoft Excel Programming 1 8th Sep 2006 06:03 PM
Averaging a range in VBA WilMar Microsoft Excel Programming 4 17th Nov 2004 04:14 PM
Averaging a range of numbers Lee Microsoft Excel Worksheet Functions 3 6th Nov 2003 11:46 PM
Averaging a range Chuck W Microsoft Excel Worksheet Functions 1 25th Jun 2003 02:03 PM


Features
 

Advertising
 

Newsgroups
 


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