sumproduct - 3 variable to include a date

lou78

New Member
Joined
Mar 13, 2018
Messages
10
Hi – I have a table which previously counted 2 vairables– however now I need to include a 3rd variable – the month. I.e. I needto count where

Column A=gg and

CoulmnB = sd and

ColumnC = sept-18


Each wayI have tried returns a 0

 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try:

=COUNTIFS(A:A,"gg",B:B,"sd",C:C,">="&DATE(2018,9,1),C:C,"<"&DATE(2018,10,1))
 
Upvote 0
=SUMPRODUCT((A1:A100="gg")*(B1:B100="sd")*(TEXT(C1:C100,"yyyymm")="201809"))

You need to determine if your dates are text or proper dates.
Only you can decide that.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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