Hello, I am new to this so hopefully I get this sent right…
I am trying to calculate all 4 x 8 Brick types sold for the month of November (i.e. 4 x 8 BRICK and 4 x 8 20BRICK). In my example data below there were 10, 15 and 1 for a total of 26 4 x 8 Bricks sold in November. I get #VALUE! with this formula - Help! The access query pulls in spaces into the excel file so those are accounted for.
=SUMPRODUCT(1*(MONTH(A2:A6)=11),B2:B6,C2:C6,"=4 x 8 BRICK ","COMP 4 x 8 BRICK ")
dtdate dtqty dtbkdesc
10-Nov-14 5 4 x 12 LOGO BRICK
10-Nov-14 10 4 x 8 BRICK
10-Nov-14 1 8 x 8 PREM LOGO GRANITE BRICK
11-Nov-14 15 4 x 8 BRICK
11-Nov-14 2 8 x 8 BRICK
12-Nov-14 1 4 x 8 20BRICK
The About This Message Board forum is for topics about the message board, such as problems posting, questions about rules here, etc. Since this is a factual question, it belongs in the General Questions forum.
Moving thread from About This Message Board to General Questions.
The problem is with the (MONTH(A2:A6)=11) part of the formula. The MONTH function cannot apply to a range, unless entered in an array form, as mcgato has demonstrated. You’re also better off using a SUM formula anyway, since you are not actually multiplying multiple columns together other than in order to determine criteria.