#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Max If

I have a column A where i have the State names. A second column with a number.
I need to be able to use formulas that give me the Max number per State. The
regular Max formula does not work with a conditional from another column,
like SUMIF or COUNTIF.

Can I do it?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Max If

Hi,

Use this ARRAY formula

=MAX(IF(A1:A20="California",B1:B20))

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.


"Guilherme Loretti" wrote:

I have a column A where i have the State names. A second column with a number.
I need to be able to use formulas that give me the Max number per State. The
regular Max formula does not work with a conditional from another column,
like SUMIF or COUNTIF.

Can I do it?

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



All times are GMT +1. The time now is 07:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"