Thread: Max/Min/Median
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default Max/Min/Median

=SUMPRODUCT(MAX((B1:B20=1)*(A1:A20)))


"gibsol" wrote:

I have a database which depending on the criteria increases or decreases in
length. What I am trying to do is find the Max/Min/Median % in one column of
data of varying size, e.g. if I select criteria 1, the data length is 100
rows, if I select 2, the data length is 25 - data is different to criteria 1.
Any help would be appreciated.