count number of cells that contain text string

pigsfoot

Board Regular
Joined
Dec 13, 2007
Messages
58
Office Version
  1. 365
Hi, i have a colum that contains date and time as dd/mm/yyyy hh:mm.

I need a forumula that will count the number of entries in one column i.e. F2:F500 that contains a specific text string such as 00:00 or 00:15 or 00:30 and so on as i need to report how many enteries there are for each 15 min window throughout a day.

I seem to be strugalling as the number i'm search for contains ":" ( i believe its a text string ) rather than just a pure number.

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi,
See if this works for you.

Add a new "helper" column to extract the time value (col B), list all of the unique hours you would want to count (col D) and add formula to col E.

Book2
ABCDE
1date/time listTimeValueHourCount
203/12/2021 00:0000:0000:001
304/12/2021 00:1500:1500:153
405/12/2021 00:3000:3000:301
506/12/2021 00:4500:4500:451
607/12/2021 01:0001:0001:002
708/12/2021 00:1500:1501:151
809/12/2021 01:3001:3001:301
910/12/2021 01:4501:4501:452
1011/12/2021 01:0001:0002:000
1112/12/2021 00:1500:1502:150
1213/12/2021 02:3002:3002:301
1314/12/2021 01:4501:4502:450
1415/12/2021 03:0003:0003:001
1501/12/2021 01:1501:1503:150
Sheet4
Cell Formulas
RangeFormula
B2:B15B2=VALUE(TEXT(A2,"hh:mm"))
E2:E15E2=COUNTIF($B$2:$B$15,D2)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,638
Messages
6,120,676
Members
448,977
Latest member
moonlight6

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