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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
*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,224,812
Messages
6,181,083
Members
453,021
Latest member
Justyna P

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