Countif Cell Range = Time

Tybudd

Board Regular
Joined
Oct 13, 2009
Messages
60
I'm trying to have a cell count only cells within a range that has time only.

B7 = counting Cell or formula Cell
B7:Z7 = Check Range looking for text in a time format
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
These are text and not time? What format are they in, can you give examples?

B7 can't check B7, do you want the formula in B6 or do you want to check B8:B27?



If it is text, and contains ":" this will work

=COUNTIF(B8:B27,"*:*")
 
Last edited:
Upvote 0
These are text and not time? What format are they in, can you give examples?

B7 can't check B7, do you want the formula in B6 or do you want to check B8:B27?



If it is text, and contains ":" this will work

=COUNTIF(B8:B27,"*:*")


No, they have to be time format, because using this, I'm also going to do a sumif as well.

and Yes I made a mistake attempting to count b7
 
Upvote 0
1. Is C7:Z7 populated by a formula, manually, vba or otherwise?
1a. If a formula what is the formula?

2. If cells in C7:Z7 do not contain a time, what do they contain? (eg Text, blank, numbers etc)

Edit: I think I misread the first post. You said "looking for text in a time format", so doesn't a COUNTIF formula like post 2 (with the correct target range) do what you want?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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