SUMPRODUCT use

crocco

Board Regular
Joined
Jan 28, 2010
Messages
142
I think this is an incorrect use of sumproduct but im trying to total a column (QAMT) pulling the result to relevant column headings (B2,B3, etc Months of the years) based on whether the month are in any of four possible columns (QUART1,QUART2, etc) and there is a match in a property number column as well (QPROP) on a spearate table.



=SUMPRODUCT((QAMT),(OR(QUART1=B2,QUART2=B2,QUART3=B2,QUART4=B2))*(QPROP=A6))


I am assuming that SUMPRODUCT doesnt like my use of OR? How do I get around this?

Thanks in advance
 
QAMT =Quarterly!$F$3:$F$400
QPROP =Quarterly!$A$3:$A$400
QUART1 =Quarterly!$B$3:$B$400
QUART2 =Quarterly!$C$3:$C$400
QUART3 =Quarterly!$D$3:$D$400
QUART4 =Quarterly!$E$3:$E$400


Is this what you're after?
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
QAMT =Quarterly!$F$3:$F$400
QPROP =Quarterly!$A$3:$A$400
QUART1 =Quarterly!$B$3:$B$400
QUART2 =Quarterly!$C$3:$C$400
QUART3 =Quarterly!$D$3:$D$400
QUART4 =Quarterly!$E$3:$E$400


Is this what you're after?
 
Upvote 0
QAMT =Quarterly!$F$3:$F$400
QPROP =Quarterly!$A$3:$A$400
QUART1 =Quarterly!$B$3:$B$400
QUART2 =Quarterly!$C$3:$C$400
QUART3 =Quarterly!$D$3:$D$400
QUART4 =Quarterly!$E$3:$E$400


Is this what you're after?

Yes. Maybe we should have a look at the file itself...
 
Upvote 0
I've figured this out. One of my values in QAMT was an N/A# but the error wasnt being ignored because it was a pasted value. does that make sense?

thanks for your help
 
Upvote 0
I've figured this out. One of my values in QAMT was an N/A# but the error wasnt being ignored because it was a pasted value. does that make sense?

thanks for your help

Yes, absolutely. Remove that #N/A from QAMT in order to invoke:
Rich (BB code):
=SUMPRODUCT(
 QAMT,
 --((QUART1=B2)+(QUART2=B2)+(QUART3=B2)+(QUART4=B2)>0),
 --(QPROP=A6))

Otherwise, invoke...
Control+shift+enter, not just enter:
Rich (BB code):
=SUM(
 IF((QUART1=B2)+(QUART2=B2)+(QUART3=B2)+(QUART4=B2)>0,
 IF(QPROP=A6,
 IF(ISNUMBER(QAMT),QAMT))))
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top