Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Average over autofilter results
I found out instead of using the sum(), I should use the Subtotal() to get
the proper value of a summation over an autofilter result. That said, I need to get the average of a column which has an autofilter applied, which function should I use to do this? Thank you, QB |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Average over autofilter results
After some reading, I found out that the first input variable for the
SubTotal() control what type of value is returned (1- average, 9-sum). So the one function does it all! QB "QB" wrote: I found out instead of using the sum(), I should use the Subtotal() to get the proper value of a summation over an autofilter result. That said, I need to get the average of a column which has an autofilter applied, which function should I use to do this? Thank you, QB |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Average over autofilter results
The same, SUBTOTAL. You just need to change the function number to either 1
or 101. The function number controls what type of operation you are performing. Whereas =SUBTOTAL(9,A:A) means to sum, =SUBTOTAL(1,A:A) means to average. See the XL help file for further details. -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "QB" wrote: I found out instead of using the sum(), I should use the Subtotal() to get the proper value of a summation over an autofilter result. That said, I need to get the average of a column which has an autofilter applied, which function should I use to do this? Thank you, QB |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Average over autofilter results
use function 101 in your subtotal for average not including hidden rows. So,
=SUBTOTAL(101,A2:A500) If you type =SUBTOTAL(, thin click the Fx button in your address bar, you can click the "Help on this function" hyperlink for more options. "QB" wrote: I found out instead of using the sum(), I should use the Subtotal() to get the proper value of a summation over an autofilter result. That said, I need to get the average of a column which has an autofilter applied, which function should I use to do this? Thank you, QB |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Average over autofilter results
Please keep in mind, option 1 is going to average hidden rows. 101 ignores
hidden rows. "QB" wrote: After some reading, I found out that the first input variable for the SubTotal() control what type of value is returned (1- average, 9-sum). So the one function does it all! QB "QB" wrote: I found out instead of using the sum(), I should use the Subtotal() to get the proper value of a summation over an autofilter result. That said, I need to get the average of a column which has an autofilter applied, which function should I use to do this? Thank you, QB |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Autofilter results | Excel Discussion (Misc queries) | |||
autofilter does not hide unwanted results | Excel Worksheet Functions | |||
Way to display filtered results from more than one autofilter per | Excel Worksheet Functions | |||
create sheet from autofilter results | Excel Discussion (Misc queries) | |||
Strange Results with Autofilter | Excel Discussion (Misc queries) |