Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MINIMUM OF POSITIVE VALUES only


It looks to me like the MAX and MIN functions are working just as they
are designed to. Let me see if I can explain.

As noted: the array formula (A1:A6)0,A1:16) returns the arrays
{TRUE;FALSE;TRUE;FALSE;FALSE;TRUE}{6;0;8;0;0;3}. The MIN function
looks at each element of each input array and returns the smallest
value, ignoring boolean and text values. So, to the MIN function, the
array looks like {TRUE;FALSE;TRUE;FALSE;FALSE;TRUE;6;0;8;0;0;3}. With
this array as input, and ignoring Boolean values, the smallest
numerical value in the array is 0. The largest numerical value is 8.
(Aside: If you really think the MAX function is working correctly, see
what happens if you switch to negative numbers and try to return the
largest value that is less than 0. In this scenario, the MIN function
will appear to work correctly, but the MAX function won't).

You noted that the function MIN(IF(A1:A60,A1:A6)) works. If we look
at this carefully, we see that the array returned by the inner IF
function would be {6;FALSE;8;FALSE;FALSE;3}. With this array as input,
and ignoring boolean values, the smallest value is indeed 3.

Does that make sense?

I'm not an expert on array formulas, but I'm reasonably confident that
that's why it isn't working for you.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=375644

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
finding maximum, minimum in a range consists both Positive and Negative numbers Praveen Excel Worksheet Functions 3 May 4th 23 07:45 PM
Subtracting positive amts from negative and positive from positive bwbmom Excel Worksheet Functions 3 February 12th 10 03:15 PM
Can't Set Minimum Y Axis Values annem Excel Worksheet Functions 3 November 21st 07 04:34 PM
Formula to make Negative Values Positive & Positive Values Negative? mustard Excel Discussion (Misc queries) 4 September 26th 05 10:05 PM
... Count, <<< Positive Values minus Negative Values >>> ... Dr. Darrell Excel Worksheet Functions 4 September 8th 05 01:36 PM


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