View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
drs207 drs207 is offline
external usenet poster
 
Posts: 2
Default how to get the median of cells that meet a given criteria in excel

Hi,

Exel, in addition to the AVERAGE function, has the AVERAGEIF or AVERAGEIFS
function to calculate the average value of cells that meet a given set of
criteria.

However, the MEDIAN function can't seem to do anything except calculate the
median value of all cells in a column.

Is there some kind of "MEDIANIF" function that I can use to calculate the
median value of cells that meet a given criteria. If not, is there a way to
get the answer programmatically?

Thanks in advance for your help.