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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
*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,223,867
Messages
6,175,069
Members
452,611
Latest member
bls2024

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