Counting cells with specific text within two dates

AmateurHour

New Member
Joined
Jun 27, 2024
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
Hi All - New here so please bare with me.

I would like to count the number of times a cell containing "PB" would appear for a set individual between two dates.

For example in Image attached:
1. Count cells containing "PB" in the Row labelled "J D" between the dates 2/1/24 (DD/MM/YY) and 13/1/24. (Result should be 1)
2. Count cells containing "PB" in the Row labelled "J D" between the dates 2/1/24 (DD/MM/YY) and 30/1/24. (Result should be 3)
Screenshot 1.png


What formula would I use to achieve this?

Thanks in advance
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
*CORRECTION EDIT*
2. Count cells containing "PB" in the Row labelled "J D" between the dates 2/1/24 (DD/MM/YY) and 30/1/24. (Result should be 2)
 
Upvote 0
It would be something like this.
Excel Formula:
=COUNTIFS(countRange,"PB",dateRange,">="&DATE(2024,1,2),dateRange,"<="&DATE(2024,1,13))
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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