Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default How to do a MAXIF formula

I need Excel to do a MAX function, but only on a specified number of cells.
ie. I need it to MAX the cells adjoining cells that are sorted into groups
A,B,C or 1,2,3 seperately. This is what I have so far.
=IF(Q:Q=1,MAX(Y:Y),"") What am I doing wrong?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to do a MAXIF formula

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=MAX(IF(Q1:Q100=1,Y1:Y100))

Or, normally entered (just ENTER):

=SUMPRODUCT(MAX((Q1:Q100=1)*Y1:Y100))

Note: you can't use entire columns as range references in either formula -
Q:Q, Y:Y (unless you're using Excel 2007)

Biff

"Clay" wrote in message
...
I need Excel to do a MAX function, but only on a specified number of cells.
ie. I need it to MAX the cells adjoining cells that are sorted into groups
A,B,C or 1,2,3 seperately. This is what I have so far.
=IF(Q:Q=1,MAX(Y:Y),"") What am I doing wrong?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default How to do a MAXIF formula

T. Valko

THANK YOU, THANK YOU. I know you probably shook your head at such a stupid
question, but you don't realize how much time I put into figuring this out.
Thanks a million.

Clay

"T. Valko" wrote:

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=MAX(IF(Q1:Q100=1,Y1:Y100))

Or, normally entered (just ENTER):

=SUMPRODUCT(MAX((Q1:Q100=1)*Y1:Y100))

Note: you can't use entire columns as range references in either formula -
Q:Q, Y:Y (unless you're using Excel 2007)

Biff

"Clay" wrote in message
...
I need Excel to do a MAX function, but only on a specified number of cells.
ie. I need it to MAX the cells adjoining cells that are sorted into groups
A,B,C or 1,2,3 seperately. This is what I have so far.
=IF(Q:Q=1,MAX(Y:Y),"") What am I doing wrong?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to do a MAXIF formula

You're welcome. Thanks for the feedback!

I know it's a cliche, but, there are no stupid questions!

Biff

"Clay" wrote in message
...
T. Valko

THANK YOU, THANK YOU. I know you probably shook your head at such a
stupid
question, but you don't realize how much time I put into figuring this
out.
Thanks a million.

Clay

"T. Valko" wrote:

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not
just
ENTER):

=MAX(IF(Q1:Q100=1,Y1:Y100))

Or, normally entered (just ENTER):

=SUMPRODUCT(MAX((Q1:Q100=1)*Y1:Y100))

Note: you can't use entire columns as range references in either
formula -
Q:Q, Y:Y (unless you're using Excel 2007)

Biff

"Clay" wrote in message
...
I need Excel to do a MAX function, but only on a specified number of
cells.
ie. I need it to MAX the cells adjoining cells that are sorted into
groups
A,B,C or 1,2,3 seperately. This is what I have so far.
=IF(Q:Q=1,MAX(Y:Y),"") What am I doing wrong?






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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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