Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CHRIS K
 
Posts: n/a
Default HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA)?

HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA) &
HOW DO I GET THE EQUIVALENT OF MINIF(RANGE,CRITERIA)?
i've tried loads of rubbish but cant get the answer i want.
--
CHRISK
  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default

Here's one way:

In my example, I put letters down Col A and Values down Col B:
=SUMPRODUCT(MAX((A2:A100="a")*(B2:B100)))

You could also engage an autofilter and use the SUBTOTAL function to return
the maximum visible value: =SUBTOTAL(4,range)

Does that help?
--
Regards,
Ron

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

DONT SHOUT!

=MAX(IF(A1:A100<"value",B1:B100)

which is an array formula, so commit with Ctrl-Shift-Enter.

--
HTH

Bob Phillips

"CHRIS K" wrote in message
...
HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA) &
HOW DO I GET THE EQUIVALENT OF MINIF(RANGE,CRITERIA)?
i've tried loads of rubbish but cant get the answer i want.
--
CHRISK



  #4   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

Use:

=MAX(A1:A4*(B1:B4="a"))
confirm with control - shift - enter
And similar for min

Mangesh




"CHRIS K" wrote in message
...
HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA) &
HOW DO I GET THE EQUIVALENT OF MINIF(RANGE,CRITERIA)?
i've tried loads of rubbish but cant get the answer i want.
--
CHRISK



  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

I put this in A1:B4
-1 a
-2 b
-3 a
-4 a

And got 0 back.

So be careful with this one.

Mangesh Yadav wrote:

Use:

=MAX(A1:A4*(B1:B4="a"))
confirm with control - shift - enter
And similar for min

Mangesh

"CHRIS K" wrote in message
...
HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA) &
HOW DO I GET THE EQUIVALENT OF MINIF(RANGE,CRITERIA)?
i've tried loads of rubbish but cant get the answer i want.
--
CHRISK


--

Dave Peterson


  #6   Report Post  
CHRIS K
 
Posts: n/a
Default

The MAX works but the MIN returns 0
thanks
--
CHRISK


"Ron Coderre" wrote:

Here's one way:

In my example, I put letters down Col A and Values down Col B:
=SUMPRODUCT(MAX((A2:A100="a")*(B2:B100)))

You could also engage an autofilter and use the SUBTOTAL function to return
the maximum visible value: =SUBTOTAL(4,range)

Does that help?
--
Regards,
Ron

  #7   Report Post  
CHRIS K
 
Posts: n/a
Default

this works for half
what is the ctrl shift enter bit?
--
CHRISK


"Mangesh Yadav" wrote:

Use:

=MAX(A1:A4*(B1:B4="a"))
confirm with control - shift - enter
And similar for min

Mangesh




"CHRIS K" wrote in message
...
HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA) &
HOW DO I GET THE EQUIVALENT OF MINIF(RANGE,CRITERIA)?
i've tried loads of rubbish but cant get the answer i want.
--
CHRISK




  #8   Report Post  
CHRIS K
 
Posts: n/a
Default

sorry for the caps bob

cant get this one to work, was looking at the wrong one when i pressed the
'yes' button.
this gives me 0 for everything
Shall try harder to sort it
thanks
--
CHRISK


"Bob Phillips" wrote:

DONT SHOUT!

=MAX(IF(A1:A100<"value",B1:B100)

which is an array formula, so commit with Ctrl-Shift-Enter.

--
HTH

Bob Phillips

"CHRIS K" wrote in message
...
HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA) &
HOW DO I GET THE EQUIVALENT OF MINIF(RANGE,CRITERIA)?
i've tried loads of rubbish but cant get the answer i want.
--
CHRISK




  #9   Report Post  
Ron Coderre
 
Posts: n/a
Default

For MIN, try this:

=SUMPRODUCT(MIN(($A$2:$A$100="a")*($B$2:$B$100)+($ A$2:$A$100<"a")*10^10))

(The additions to the formula cause non-matches to equate to 100,000,000,000
instead of zero)
--
Regards,
Ron


"CHRIS K" wrote:

The MAX works but the MIN returns 0
thanks
--
CHRISK


"Ron Coderre" wrote:

Here's one way:

In my example, I put letters down Col A and Values down Col B:
=SUMPRODUCT(MAX((A2:A100="a")*(B2:B100)))

You could also engage an autofilter and use the SUBTOTAL function to return
the maximum visible value: =SUBTOTAL(4,range)

Does that help?
--
Regards,
Ron

  #10   Report Post  
Bob Phillips
 
Posts: n/a
Default

Don't forget Ctrl-Shift-Enter.

--
HTH

Bob Phillips

"CHRIS K" wrote in message
...
sorry for the caps bob

cant get this one to work, was looking at the wrong one when i pressed the
'yes' button.
this gives me 0 for everything
Shall try harder to sort it
thanks
--
CHRISK


"Bob Phillips" wrote:

DONT SHOUT!

=MAX(IF(A1:A100<"value",B1:B100)

which is an array formula, so commit with Ctrl-Shift-Enter.

--
HTH

Bob Phillips

"CHRIS K" wrote in message
...
HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA) &
HOW DO I GET THE EQUIVALENT OF MINIF(RANGE,CRITERIA)?
i've tried loads of rubbish but cant get the answer i want.
--
CHRISK








  #11   Report Post  
Bob Phillips
 
Posts: n/a
Default

makes it an array formula, otherwise it doesn't work on the whole range.

--
HTH

Bob Phillips

"CHRIS K" wrote in message
...
this works for half
what is the ctrl shift enter bit?
--
CHRISK


"Mangesh Yadav" wrote:

Use:

=MAX(A1:A4*(B1:B4="a"))
confirm with control - shift - enter
And similar for min

Mangesh




"CHRIS K" wrote in message
...
HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA) &
HOW DO I GET THE EQUIVALENT OF MINIF(RANGE,CRITERIA)?
i've tried loads of rubbish but cant get the answer i want.
--
CHRISK






  #12   Report Post  
Bob Phillips
 
Posts: n/a
Default

=MIN(IF(A2:A100="a",B2:B100))

array entered, Ctrl-Shift-Enter

keep pushing it :-)

--
HTH

Bob Phillips

"CHRIS K" wrote in message
...
The MAX works but the MIN returns 0
thanks
--
CHRISK


"Ron Coderre" wrote:

Here's one way:

In my example, I put letters down Col A and Values down Col B:
=SUMPRODUCT(MAX((A2:A100="a")*(B2:B100)))

You could also engage an autofilter and use the SUBTOTAL function to

return
the maximum visible value: =SUBTOTAL(4,range)

Does that help?
--
Regards,
Ron



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
Excel equivalent of Matlab stem plot John Broderick Charts and Charting in Excel 1 May 31st 05 08:00 PM
Can you convert a number to word equivalent ? Nagesh K R Excel Worksheet Functions 2 May 4th 05 12:48 PM
convert duration (hr:mn:sec) in to equivalent sec pg Excel Discussion (Misc queries) 2 April 26th 05 07:54 AM
How do you make a backup file - .bak or MS equivalent? Terry_BWL New Users to Excel 4 January 3rd 05 11:12 PM
Lotus Equivalent Brian Keanie Excel Discussion (Misc queries) 6 January 2nd 05 10:48 PM


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