Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Steven
 
Posts: n/a
Default MaxIF instead of SumIF

I am doing a SumIF( , , ) and that works fine. Is there a way to do a
MaxIf( , , ). I see in the help that there is no Maxif but what I want to
do is return the highest value for that particular occurance in the same data
that I am doing the SumIF.

Thank you for your help.

Steven
  #2   Report Post  
CLR
 
Posts: n/a
Default

Hi Steven.............

You could do Data Filter AutoFilter............then select your group of
interest and sort decending on your column of interest..........that would
put the MAX value of that subset at the top of that column............

hth
Vaya con Dios,
Chuck, CABGx3


"Steven" wrote in message
...
I am doing a SumIF( , , ) and that works fine. Is there a way to do a
MaxIf( , , ). I see in the help that there is no Maxif but what I want

to
do is return the highest value for that particular occurance in the same

data
that I am doing the SumIF.

Thank you for your help.

Steven



  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

There is no MAXIF function, but you can use an array
formula. For example, return the maximum value in A1:A100
if B1:B100 = "dog":

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

2 important notes:

1. This is an array formula, so you must press
ctrl/shift/enter, not just enter, after inserting the
formula and anytime you edit the cell. XL will place {}
around the formula.

2. Array formulas cannot handle entire columns. You
cannot use:

=MAX(IF(B:B="dog",A:A))

HTH
Jason
Atlanta, GA

-----Original Message-----
I am doing a SumIF( , , ) and that works fine. Is

there a way to do a
MaxIf( , , ). I see in the help that there is no

Maxif but what I want to
do is return the highest value for that particular

occurance in the same data
that I am doing the SumIF.

Thank you for your help.

Steven
.

  #4   Report Post  
Steven
 
Posts: n/a
Default

Thats a good one Jason. Thanks.
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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
maxif Gregg Excel Worksheet Functions 4 December 29th 04 12:52 AM
help with "criterea" in the sumif function [email protected] Excel Worksheet Functions 3 December 17th 04 06:27 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


All times are GMT +1. The time now is 01:10 AM.

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"