H
Harlan Grove
....amir2000 said:You think it's possible to tell it to count only once and not every date to
count it again?
Example. In B2:H7 (columns C, E and G blank, dates in yyyy-mm-dd
format),
2008-06-03 2008-06-02 2008-06-01 box 2
2008-06-02 2008-06-01 2008-06-03 box 3
2008-06-02 2008-06-01 2008-06-03 --
2008-06-02 2008-06-02 2008-06-01 box 5
2008-06-02 2008-06-02 2008-06-01 --
2008-06-03 2008-06-03 2008-06-03 box 7
The formula
=SUMPRODUCT(--(LEFT($H$2:$H$7,3)="box"),
--(($B$2:$B$7=39601)+($D$2:$D$7=39601)+($F$2:$F$7=39601)>0))
returns 3.
Isn't that the correct result for this data? Note that B5 and D5 both
equal the date 2008-06-02, which equals 39601, but the 'box' in column
H is only counted once.