# Thread: Solved: Sumproduct/Array formula for cells with date

1. ## Solved: Sumproduct/Array formula for cells with date

Hi all:

I have this data:

A Date----------##-------Total January-----Total November
1/12009---------10---------14----------------5
11/3/2009-------5
1/4/2009--------4
-----------------3
-----------------7

Arrray enter = (month(A1:A5)=1)*(B1:b5) = 24 and not 14 since a month of a blank cell is 1 (month 1/0/1900).

Any idea how I can solve this situation using arrays.

Thanks for the help.

Victor

2. Try

=SUMPRODUCT(--(A1:A5<>""),--(MONTH(A1:A5)=1),B1:B5)

3. xld
Can you explain the use of — before the test, please ?
thanks
Victor

4. See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed explanation.

5. XLT

Nice, "you can coerce to 1/0 with the double unary --" instate of multiply by cero for one condition.

Thanks

Victor

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•