have a count based on 2 columns in a different sheet

Jaffa_ca

New Member
Joined
Oct 7, 2006
Messages
9
Hello all

I'm not the best at excel yet but my skills are growing thanks to reading and trying many of the thing i've read on here.

my current problem is rather tricky (or at least for me). maybe it the formula that i'm trying to use, which is the countif formula

what i'm trying to do is have excel count if 2 columns are true.

example

column A has the dates and Column B has Numbers like exampled below and I want the formula to both count the date and the number, so if i was looking for how many times on July 1st 2019 the number 1 appeared it would show me 2 i've tried the countif formula using multiple ranges and criteria, but i get an error each time. I know i am doing something wrong, i just can't pinpoint it yet


A B
07/01/2019 1
07/01/2019 1
07/01/2019 2
12/01/2019 1
12/01/2019 1

Thanks
J
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
One way is to use SUMPRODUCT: =SUMPRODUCT((A1:A5=DATEVALUE("7/1/2019"))*(B1:B5=1))

If the date you're looking for is in C1 and the value is in D1, use: =SUMPRODUCT((A1:A5=C1)*(B1:B5=D1))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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