Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Henrik
 
Posts: n/a
Default Array Function Question

Hi,

I am using an array function to lookup maximum and minimum values between to
two dates (see below). The array function for MAX() works perfectly fine.
However, once I substitute MIN for MAX and hit ctrl+shift+enter, the output i
zero, even though this answer is wrong. (There are no observations with the
value of 0 in the dataset. Nor are there blank observations.)

Does anyone know why the array function with MIN doesn't work?

In advance, thanks for your help.

Henrik

WORKS:
{=MAX(Stock_Data!$C$3:$C$1616*($A2<=Stock_Data!$A$ 3:$A$1616)*($K2=Stock_Data!$A$3:$A$1616))}


DOESN'T WORK
{=MIN(Stock_Data!$C$3:$C$1616*($A2<=Stock_Data!$A$ 3:$A$1616)*($K2=Stock_Data!$A$3:$A$1616))}
  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default

It's because when the cells don't match your criteria, the formula returns
FALSE...which equates to ZERO. So as soon as you have a non-matching
value...you get your minimum of zero.

Try this:

=MIN(IF(($A2<=Stock_Data!$A$3:$A$1616)*($K2=Stock _Data!$A$3:$A$1616),Stock_Data!$C$3:$C$1616,10^10) )

Remember to [Ctrl]+[Shift]+[Enter] to commit that array formula

--
Regards,
Ron

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
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
Can I count in an array based on a function? HokieLawrence Excel Worksheet Functions 2 February 12th 05 03:05 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
Grading Function Question... spooker4u Excel Worksheet Functions 1 November 1st 04 02:49 PM


All times are GMT +1. The time now is 11:08 AM.

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

About Us

"It's about Microsoft Excel"