Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
maryj
 
Posts: n/a
Default median excluding 0's

What formula would give the median of a range but exclude all 0's. Thanks!
--
maryj
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JNW
 
Posts: n/a
Default median excluding 0's

I can't think of a direct way to do it.

Let's say your numbers are in Column A, then in B1 you would place the
following formula:
=IF(A10,A1,"")

Then drag it down for all numbers in column A. Then you can use
=MEDIAN(B:B) to return the median while excluding zeros

"maryj" wrote:

What formula would give the median of a range but exclude all 0's. Thanks!
--
maryj

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default median excluding 0's

One way

=MEDIAN(IF(A1:A50<0,A1:A50))

it's an array formula and needs to be entered with ctrl + shift & enter

--
Regards,

Peo Sjoblom

Portland, Oregon




"maryj" wrote in message
...
What formula would give the median of a range but exclude all 0's. Thanks!
--
maryj


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
Finding the median of numbers meeting criteria thekovinc Excel Discussion (Misc queries) 3 February 7th 06 12:45 AM
Subtotal the median Terri Excel Worksheet Functions 1 January 26th 06 04:41 PM
Median result used in formula gives incorrect result vlatham Excel Worksheet Functions 4 September 21st 05 04:26 PM
Find Median of Positive numbers only in Range MichaelC Excel Worksheet Functions 4 June 24th 05 03:06 AM
Excel's Pivot Table & Subtotal function should have a median fie. Mary Excel Worksheet Functions 1 December 3rd 04 03:27 PM


All times are GMT +1. The time now is 08:10 AM.

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

About Us

"It's about Microsoft Excel"