Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

median formula help needed

Status
Not open for further replies.

knifey

Technical User
Nov 14, 2006
180
GB
Hi,

I have an averageif formula that I'm trying to adapt (unsuccessfully) to give me the median instead. Can anyone advise where I'm going wrong or a better way of doing this?

AverageIf works:
=AVERAGEIF(OFFSET(Source!$A$1,1,MATCH("Incident status",Source!$1:$1,0)-1,COUNTA(Source!$A:$A),1),$C15,OFFSET(Source!

Median doesn't work:
{=MEDIAN(IF(OFFSET(Source!$A$1,1,MATCH("Incident status",Source!$1:$1,0)-1,COUNTA(Source!$A:$A),1)=$C15,OFFSET(Source!$A$1,1,MATCH("Creation to today",Source!$1:$1,0)-1,COUNTA(Source!$A:$A),1)))}

Thanks,
K
 
Try non-array formula. Check IF function, currently you have:
..IF(OFFSET(..)=$C15, OFFSET(...))
This returns FALSE if condition is FALSE, you need range.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top