#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Max/Min/Median

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Max/Min/Median

Thanks Toppers it works a treat, keep forgetting about Ctrl+Shift+Enter.

"Toppers" wrote:

Are the data and criteria in separate columns e.g. % in Column A, criteria in
B?

If so, then try entered with Ctrl+Shift+Enter

=MAX(IF($B$1:$B$20=1,$A$1:$A$20))

"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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Max/Min/Median

Are the data and criteria in separate columns e.g. % in Column A, criteria in
B?

If so, then try entered with Ctrl+Shift+Enter

=MAX(IF($B$1:$B$20=1,$A$1:$A$20))

"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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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.

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
Conditional Median warburger Excel Worksheet Functions 2 March 12th 06 02:48 PM
Subtotal the median Terri Excel Worksheet Functions 1 January 26th 06 04:41 PM
Median function pamanaf Excel Discussion (Misc queries) 1 August 10th 05 02:16 PM
Median of Even Set; How to Capture them? Mike Excel Discussion (Misc queries) 7 July 28th 05 01:24 PM
Finding Median if a value = 1.. help! Greg Excel Worksheet Functions 2 February 13th 05 03:28 AM


All times are GMT +1. The time now is 03:36 PM.

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"