A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MAX IF



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2010, 09:35 AM posted to microsoft.public.excel.misc
Sasikiran
external usenet poster
 
Posts: 110
Default MAX IF

Dear,

I am looking for a formula which would give the max value of each city in
column D based on the entry's in column B.

Please help.

Col A Col B Col C Col D
Texas 76 Texas =
Detroit 252 Detroit =
Detroit 29 Tenesse
Texas 443 Mexico
Texas 0 Chicago
Texas 700
Detroit 0
Tenesse 51
Tenesse 70
Texas 673
Tenesse 90
Mexico 21
Chicago 10
  #2  
Old May 18th, 2010, 10:44 AM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 8,419
Default MAX IF

Hi,

Put this ARRAY formula in d1, array enter it (see below) and drag down

=MAX(IF($A$1:$A$13=C1,$B$1:$B$13))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
and not just Enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't type these yourself. If you edit the formula
you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Sasikiran" wrote:

Dear,

I am looking for a formula which would give the max value of each city in
column D based on the entry's in column B.

Please help.

Col A Col B Col C Col D
Texas 76 Texas =
Detroit 252 Detroit =
Detroit 29 Tenesse
Texas 443 Mexico
Texas 0 Chicago
Texas 700
Detroit 0
Tenesse 51
Tenesse 70
Texas 673
Tenesse 90
Mexico 21
Chicago 10

  #3  
Old May 18th, 2010, 11:46 AM posted to microsoft.public.excel.misc
Sasikiran
external usenet poster
 
Posts: 110
Default MAX IF

Thank you Mike

"Mike H" wrote:

Hi,

Put this ARRAY formula in d1, array enter it (see below) and drag down

=MAX(IF($A$1:$A$13=C1,$B$1:$B$13))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
and not just Enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't type these yourself. If you edit the formula
you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Sasikiran" wrote:

Dear,

I am looking for a formula which would give the max value of each city in
column D based on the entry's in column B.

Please help.

Col A Col B Col C Col D
Texas 76 Texas =
Detroit 252 Detroit =
Detroit 29 Tenesse
Texas 443 Mexico
Texas 0 Chicago
Texas 700
Detroit 0
Tenesse 51
Tenesse 70
Texas 673
Tenesse 90
Mexico 21
Chicago 10

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.