Sumproduct formula not giving me the results i expect

KarlRadaza

New Member
Joined
Nov 27, 2018
Messages
14
Hello Excel-lent people,

Very basic issue but i cant seem to figure out why i cant get the results i desire. I just basically need the formula to count the number of data that has the matching month and year. For example on the screenshot ,lets focus on cell Q6, the formula i came up with is:

=SUMPRODUCT(($B$2:$B$24=Q$3)*($C$2:$C$24=$E6))

And i prefer this over countif but trust me it leads to a faulty result of "1" when in fact there is no "Dec 2020" on the array..

image001.png


And as you can see ,it yields 1 for all which is incorrect, and frustratingly i cant figure it out despite changing the table array referencing. Please help me guys, looking forward to any help and thank you for yalls time! Stay safe all!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Might be more beneficial if you posted your data set using XL2BB ( see my tag) so we can use real data.
 
Upvote 0
Your formula works for me.
Could it be that on your Year columns that one is numeric and the other is text?
Book1
BCDEFGHIJKLMNOPQ
1MonthYear
2Jan2020
3Jan2018JanFebMarAprMayJunJulAugSepOctNovDec
4Nov20192018100000000000
5Nov20202019000000000021
6Nov20192020100000000010
7Dec2019
Sheet1
Cell Formulas
RangeFormula
F4:Q6F4=SUMPRODUCT(($B$2:$B$24=F$3)*($C$2:$C$24=$E4))
 
Upvote 0
Could it also be that ColsB & C are either the results of formulas OR formatted to appear as Month & Year, when in fact they are actual dates ??
 
Upvote 0
Solution
Just remembered it might be in fact the formatting,will check later and let you guys know, thanks for the help guys!!!
 
Upvote 0
Just checked and it is in fact the formatting of the cells with the formulas that caused the issue! Thank you for the help guys ,will never neglect something as basic as formatting moving forward!!
 
Upvote 0
You're welcome. Glad we could help. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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