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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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