Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=(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" wrote in message ... 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. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If you are using Excel 2007 you can use the SUMIFS function. It isn't in 2003.
"suprsonic" wrote: 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. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If you have Excel 2007, use the Averageifs function, as in:
=AVERAGEIFS(C7:C11,C7:C11,"5",C7:C11,"<15") Regards, Fred "suprsonic" wrote in message ... 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. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Try this =sumproduct((A2:A105)*(A2:A10<15)*(A2:A10))/sumproduct((A2:A105)*(A2:A10<15)) -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "suprsonic" wrote in message ... 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. |
#6
![]() |
|||
|
|||
![]() Quote:
Guys, yes it is possible to do it by combination any of the formulae Sumif/countif, averageif, sumproduct. any idea on the performance of the formulae, which runs in shorter period. I know it doest time long time btw any of the function to excute. But imagine if you have lacs of cells in mutiple spreadsheet, even single milli second is a matter in performance.
__________________
Thanks Bala |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Averaging times that are not in a range | Excel Worksheet Functions | |||
Averaging data across a date range | Excel Worksheet Functions | |||
Averaging data if within a date range | Excel Worksheet Functions | |||
Changing the range of several averaging functions | Excel Discussion (Misc queries) | |||
Averaging non-range positive data | Excel Discussion (Misc queries) |