LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Array function not working correctly if I use an "or - statement"


"Joel" wrote in message
...
You code look correct. I tried it on Excel 2003.


You did? I would suggest that your test data must have been highly dubious
then because ORing two conditions like that will return a singleton TRUE if
any row matches, or a singleton FALSE if none do. If it does resolve to
TRUE, the IF returns EVERY value in NB_LossAmount, and the MIN will only
return the (dubiously) correct answer if the minimum value of all values
happens to meet that set of conditions. If the minimum is in a row that
doesn't meet it, it will return that value.

To spell it out

NB1: X,X,X,X,Z,Y,Y,Z,Y,X
NB_LossAmount: 36,36,27,55, 8,41,29,5,72,61

If B12 = X and B13 = Y the minimum value that meets either condition is 27.
Your formula will return 5, the minimum value regardless because of the fact
that it build an array of all values, not just those that meet the criteria.


 
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
How do I use "offset" function in "array formula"? hongguang Excel Discussion (Misc queries) 3 April 4th 07 12:04 AM
embedding "ISERROR" function into an "IF" statement [email protected] Excel Worksheet Functions 8 January 4th 07 12:01 AM
Hashing function CryptAcquireContext Lib "advapi32" not working in new computer. Stephen Rasey[_3_] Excel Programming 5 December 25th 06 04:05 AM
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... Maria J-son[_2_] Excel Programming 2 March 5th 06 12:20 PM


All times are GMT +1. The time now is 12:18 PM.

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"