#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default Maxif equivalent

I have a sumif formula, as in:

=sumif(I:I,a2,J:J)

I also want to calculate the maximum of the values which meet the criteria. Is
this possible?

--
Regards,
Fred



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Maxif equivalent

From an earlier post of mine today. Note NOT using on complete columns

try this array formula which must be entered using ctrl+shift+enter
=MAX(IF(A2:A22="mytruckcode",B2:B22))
or
=MAX(IF(A2:A22=c2,B2:B22))


--
Don Guillett
SalesAid Software

"Fred Smith" wrote in message
...
I have a sumif formula, as in:

=sumif(I:I,a2,J:J)

I also want to calculate the maximum of the values which meet the
criteria. Is this possible?

--
Regards,
Fred





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Maxif equivalent

Try something like this, array-entered (press CTRL+SHIFT+ENTER):
=MAX(IF(I1:I100=A2,J1:J100))

Entire col references cannot be used
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Fred Smith" wrote in message
...
I have a sumif formula, as in:

=sumif(I:I,a2,J:J)

I also want to calculate the maximum of the values which meet the
criteria. Is this possible?

--
Regards,
Fred





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default Maxif equivalent

Thanks guys.

I was hoping to avoid arrays, and use the entire column reference, but c'est la
vie. Perhaps in a future version of Excel.

Your recommendation works perfectly.

--
Regards,
Fred


"Max" wrote in message
...
Try something like this, array-entered (press CTRL+SHIFT+ENTER):
=MAX(IF(I1:I100=A2,J1:J100))

Entire col references cannot be used
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Fred Smith" wrote in message
...
I have a sumif formula, as in:

=sumif(I:I,a2,J:J)

I also want to calculate the maximum of the values which meet the criteria.
Is this possible?

--
Regards,
Fred







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Maxif equivalent

Glad to help

--
Don Guillett
SalesAid Software

"Fred Smith" wrote in message
...
Thanks guys.

I was hoping to avoid arrays, and use the entire column reference, but
c'est la vie. Perhaps in a future version of Excel.

Your recommendation works perfectly.

--
Regards,
Fred


"Max" wrote in message
...
Try something like this, array-entered (press CTRL+SHIFT+ENTER):
=MAX(IF(I1:I100=A2,J1:J100))

Entire col references cannot be used
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Fred Smith" wrote in message
...
I have a sumif formula, as in:

=sumif(I:I,a2,J:J)

I also want to calculate the maximum of the values which meet the
criteria. Is this possible?

--
Regards,
Fred











  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Maxif equivalent

You're welcome, Fred.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Fred Smith" wrote in message
...
Thanks guys.

I was hoping to avoid arrays, and use the entire column reference, but
c'est la vie. Perhaps in a future version of Excel.

Your recommendation works perfectly.

--
Regards,
Fred



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Maxif equivalent

=SUMPRODUCT(MAX((I1:I100=A2)*J1:J100))


"Fred Smith" wrote:

I have a sumif formula, as in:

=sumif(I:I,a2,J:J)

I also want to calculate the maximum of the values which meet the criteria. Is
this possible?

--
Regards,
Fred




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
WORKDAY() Function Equivalent with SUMPRODUCT() George Ray Excel Worksheet Functions 4 October 9th 06 04:04 PM
HOW DO I GET THE EQUIVALENT OF MAXIF(RANGE,CRITERIA)? CHRIS K Excel Worksheet Functions 11 June 3rd 05 05:33 PM
Can you convert a number to word equivalent ? Nagesh K R Excel Worksheet Functions 2 May 4th 05 12:48 PM
MaxIF instead of SumIF Steven Excel Discussion (Misc queries) 3 February 9th 05 02:31 AM
maxif Gregg Excel Worksheet Functions 4 December 29th 04 12:52 AM


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