Counting rows with 2 conditions (countif?)

psycoperl

Active Member
Joined
Oct 23, 2007
Messages
339
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
  3. Web
I have data in my workbook on the "Roster" worksheet, where in a column P I have the session date and in column Q I have the session time.

On my "summary" worksheet , I want to have a count of how many rows meet a specific condition in both Column P and Q.

I was planning on using the =CountIf() function with =CountIf(ROSTER!P2:Q2200, ...) but can not figure out how to set the conditions.

For example. Where in Col. P = 10/13/2009 and Where Col Q = 9:30.

Any guidance would be appreciated.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi
Maybe something like this:
Excel Workbook
AB
1DayTime
210/12/0909:30
310/12/0909:30
410/12/0909:30
510/13/0909:30
610/13/0909:30
710/13/0909:30
810/14/0909:30
Roster


Excel Workbook
ABC
1
210/13/0909:303
3
Summary
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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