Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Using the Median function with Auto-filter

How do I get median (=median(A1:A50000) to show a result for only filtered
cells? When I autofilter on a different column and the number of visible
cells is reduced by the filter, the median stays the same as the unfiltered
list.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Using the Median function with Auto-filter

Mark,

You could use a column of helper cells.

In B1 enter

=IF(SUBTOTAL(3,A1)=0,"",A1)

and copy down to match column A.

Then array enter the formula (enter using Ctrl-Shift-Enter)

=MEDIAN(IF(B1:B50000<"",B1:B50000))

Filtering column A will change the result of the SUBTOTAL functions, and
thus the result of the array-entered MEDIAN function.

HTH,
Bernie
MS Excel MVP

"BASFMark" wrote in message
...
How do I get median (=median(A1:A50000) to show a result for only filtered
cells? When I autofilter on a different column and the number of visible
cells is reduced by the filter, the median stays the same as the
unfiltered
list.

Thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Filter - Calculating Median John Y Excel Worksheet Functions 1 January 4th 08 07:21 PM
Auto Count for Auto Filter Doesn't Function under certain circumst Jonathan Horvath Excel Discussion (Misc queries) 2 August 17th 07 04:51 AM
Write a function to do what auto-filter does Kobus Excel Worksheet Functions 4 April 13th 07 09:40 AM
Auto Filter function Wardy1 Excel Discussion (Misc queries) 2 March 30th 06 02:16 PM
Excel Auto Filter Function George Excel Worksheet Functions 5 March 17th 06 10:00 PM


All times are GMT +1. The time now is 12:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"