View Single Post
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

IF H5 or J5 or L5 is F1 and <=H1 count as 1.


So, does that mean if all 3 cells meet the criteria it still counts as 1?

F1 = lower boundry date
H1 = upper boundry date

=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5=F1),--(H5:L5<=H1)),1,0)

Biff

"Pe66les" wrote in message
...
How can I write this expression so that my answer is not #VALUE?
I'm working with dates, and I want to count only the dates in columns H,
J,
& L if they fall between the dates entered in F1 and H1.
IF H5 or J5 or L5 is F1 and <=H1 count as 1.