Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default MAX / MIN function problem

Good afternoon all:

The following array formula works perfectly.

{=MAX(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}

However, when I attempt to use the formula shown below, substituting
MIN for MAX, it returns only zeros.

{=MIN(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}

Please note the following...

1. I have confirmed the formula is entered as an array.

2. There are no zeros or negative values in the array.

3. There are no text entries in the array; only positive values.

4. The formulas are supposed to determine the maximum and minimum
values in column J
based on conditions defined in the cells S3 and S4 relative to column
G.

Any help would be most appreciated, as always.

Cheers,
Joseph

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default MAX / MIN function problem

Try this (array entered):

=MIN(IF(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4),J $3:J$11939))


--
Biff
Microsoft Excel MVP


wrote in message
...
Good afternoon all:

The following array formula works perfectly.

{=MAX(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}

However, when I attempt to use the formula shown below, substituting
MIN for MAX, it returns only zeros.

{=MIN(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}

Please note the following...

1. I have confirmed the formula is entered as an array.

2. There are no zeros or negative values in the array.

3. There are no text entries in the array; only positive values.

4. The formulas are supposed to determine the maximum and minimum
values in column J
based on conditions defined in the cells S3 and S4 relative to column
G.

Any help would be most appreciated, as always.

Cheers,
Joseph



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default MAX / MIN function problem

On Apr 12, 3:49*pm, "T. Valko" wrote:

Try this (array entered):

=MIN(IF(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4),J $3:J$11939))

--
Biff
Microsoft Excel MVP

wrote in message

...



Good afternoon all:


The following array formula works perfectly.


{=MAX(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}


However, when I attempt to use the formula shown below, substituting
MIN for MAX, it returns only zeros.


{=MIN(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}


Please note the following...


1. I have confirmed the formula is entered as an array.


2. There are no zeros or negative values in the array.


3. There are no text entries in the array; only positive values.


4. The formulas are supposed to determine the maximum and minimum
values in column J
based on conditions defined in the cells S3 and S4 relative to column
G.


Any help would be most appreciated, as always.


Cheers,
Joseph- Hide quoted text -


- Show quoted text -


Thanks, Biff and Mike. Both solutions work perfectly.

Joseph
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default MAX / MIN function problem

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


wrote in message
...
On Apr 12, 3:49 pm, "T. Valko" wrote:

Try this (array entered):

=MIN(IF(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4),J $3:J$11939))

--
Biff
Microsoft Excel MVP

wrote in message

...



Good afternoon all:


The following array formula works perfectly.


{=MAX(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}


However, when I attempt to use the formula shown below, substituting
MIN for MAX, it returns only zeros.


{=MIN(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}


Please note the following...


1. I have confirmed the formula is entered as an array.


2. There are no zeros or negative values in the array.


3. There are no text entries in the array; only positive values.


4. The formulas are supposed to determine the maximum and minimum
values in column J
based on conditions defined in the cells S3 and S4 relative to column
G.


Any help would be most appreciated, as always.


Cheers,
Joseph- Hide quoted text -


- Show quoted text -


Thanks, Biff and Mike. Both solutions work perfectly.

Joseph


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default MAX / MIN function problem

Try array entered

=INDEX(J3:J11,MATCH(MAX(IF((G3:G11=S3)*(G3:G11<=S 4),G3:G11,FALSE)),G3:G11,FALSE),1)

Change max to min for minimum. I shortened the ranges for degugging so
change then back

Mike

" wrote:

Good afternoon all:

The following array formula works perfectly.

{=MAX(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}

However, when I attempt to use the formula shown below, substituting
MIN for MAX, it returns only zeros.

{=MIN(($G$3:$G$11939=$S3)*($G$3:$G$11939<$S4)*(J$ 3:J$11939))}

Please note the following...

1. I have confirmed the formula is entered as an array.

2. There are no zeros or negative values in the array.

3. There are no text entries in the array; only positive values.

4. The formulas are supposed to determine the maximum and minimum
values in column J
based on conditions defined in the cells S3 and S4 relative to column
G.

Any help would be most appreciated, as always.

Cheers,
Joseph




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
OR function problem luvnrocs Excel Worksheet Functions 16 March 7th 08 06:58 PM
Function problem Winnie Excel Discussion (Misc queries) 2 October 9th 06 01:31 PM
Sum Function Problem!! md Excel Worksheet Functions 1 September 16th 06 10:29 AM
Mid Function Problem DEI Excel Discussion (Misc queries) 3 August 9th 06 08:08 PM
Function problem Sweeny Excel Worksheet Functions 8 October 17th 05 12:13 AM


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