why do I need to make sumproduct an array formula to make it work -


lets keep example simple. trying figure out why count coming correct when enter formula cse wrong when don't when whole formula sumproduct.

example 1

    b      |       c      |        d         |         e        |       f condtion 1 |  condition 2 | strings jan 2016 | strings feb 2016 | strings mar 2016 15/06/01   |  17/06/01    |       2          |         4        |       6 

example 2

condtion 1 |  condition 2 | strings jan 2016 | strings    | strings mar 2016 15/06/01   |  17/06/01    |      2           |        4        |      6 

i tinkering formula add values if date in first row between dates in condition 1 , condition 2 excel date serials. came with:

=sumproduct((date(right($d$1:$f$1,4),month(mid($d$1:$f$1,9,3)&"-1"),1)>=$b2)*(date(right($d$1:$f$1,4),month(mid($d$1:$f$1,9,3)&"-1"),1)<$c2)*(left($d$1:$f$1,7)="strings")*$d$2:$f$2) 

and works fine example 1. example 2 when make date not in string, formula produces #value. start breaking formula down parts , have count months >= condition 1 , wrap things in iferror(...,0) follows:

=sumproduct(iferror(--(date(right($d$1:$f$1,4),month(mid($d$1:$f$1,9,3)&"-1"),1)>=$b2),0)) 

when enter 0 both examples, if enter cse 3 example 1 , 2 example 2, anticipated answer.

it understanding sumproduct created array calculations within brackets. why need enter above formula cse when should performing way?

is there way use sumproduct without making array in case?

if use if() function or iferror() or ifx() function inside sumproduct() need use cse.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -