Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Conditional Min/Max Question?

Hi everyone,

Say I have this:

A B
1 3
1 4
1 5
1 6
2 1
2 2
2 3
2 4

While A=1, what is the MIN in B (answer=3)
While A=1, what is the MAX in B (answer=6)
While A=2, what is the MIN in B (answer=1)
While A=2, what is the MAX in B (answer=4)

Any excel formula to do this?

Thanks,
Mike

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,045
Default Conditional Min/Max Question?

On Fri, 8 Apr 2011 18:35:55 -0700 (PDT), Mike wrote:

Hi everyone,

Say I have this:

A B
1 3
1 4
1 5
1 6
2 1
2 2
2 3
2 4

While A=1, what is the MIN in B (answer=3)
While A=1, what is the MAX in B (answer=6)
While A=2, what is the MIN in B (answer=1)
While A=2, what is the MAX in B (answer=4)

Any excel formula to do this?

Thanks,
Mike



With E1 containing either a 1 or a 2:

These formulas must be **array-entered**:

=MAX(IF(A1:A8=E1,B1:B8))
=MIN(IF(A1:A8=E1,B1:B8))

----------------------------------------

To **array-enter** a formula, after entering
the formula into the cell or formula bar, hold down
<ctrl<shift while hitting <enter. If you did this
correctly, Excel will place braces {...} around the formula.
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 sum question Isis[_2_] Excel Discussion (Misc queries) 1 April 25th 10 01:33 PM
Conditional Question H New Users to Excel 7 June 19th 09 07:09 PM
Conditional maybe IF question Zsolt Szabó Excel Discussion (Misc queries) 3 December 10th 06 10:01 PM
question about conditional sum jinvictor Excel Discussion (Misc queries) 1 June 8th 06 08:03 AM
conditional sum question Devlin Excel Worksheet Functions 6 August 17th 05 07:27 AM


All times are GMT +1. The time now is 03:20 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"