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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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