Sumproduct formula syntax

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
380
Office Version
  1. 365
Platform
  1. Windows
Hi all, have the following Sumproduct formula, column D and G are dates, as well as AL40. In the case, neither the month or year of column G equals the month/year of AL40, so it should be returning a 0, but it is returning a value, so I am guessing I have a syntax error in the formula somewhere, does anybody have an idea of what that might be?

Thanks so much for any help.

Best,
Ernie


=SUMPRODUCT(($D$41:$D$95<=AL$40)*MONTH($G$41:$G$95=MONTH(AL$40))*YEAR($G$41:$G$95=YEAR(AL$40))*($I$41:$I$95="GBP"))
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You look to be missing some brackets, try
Excel Formula:
=SUMPRODUCT(($D$41:$D$95<=AL$40)*(MONTH($G$41:$G$95)=MONTH(AL$40))*(YEAR($G$41:$G$95)=YEAR(AL$40))*($I$41:$I$95="GBP"))
 
Upvote 0
Solution
Success, thank you so much Fluff! You did in 30 seconds what was taking me 4 hours and counting. Cheers!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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