LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count cells in column that contain number in a range

Sounds like you won't be running in a marathon any time soon!

Good luck on your recovery.

Here's yet another option:

=SUMPRODUCT(--(HOUR(I47:I3846)=22))

That covers from 10:00:00 PM to 10:59:59 PM

Just be aware that from 12:00:00 AM to 12:59:59 AM is hour 0. That will also
evaluate empty cells as 0 and could be counted as hour 0. To account for
that:

=SUMPRODUCT(--(I47:I3846<""),--(HOUR(I47:I3846)=22))

--
Biff
Microsoft Excel MVP


"az willie" wrote in message
...
"T. Valko" wrote in news:uGK4ywwWJHA.5272
@TK2MSFTNGP04.phx.gbl:

I'm assuming you deal with precision to the minute and not to the second.

Ok, to count *from* 10pm to 10:59pm:

=COUNTIF(I47:I3846,"="&TIME(22,0,0))-COUNTIF(I47:I3846,""&TIME(22,59,0))

Better if you put the time boundaries in cells:

A1 = 10:00 PM (or 22:00)
B1 = 10:59 PM (or 22:59)

=COUNTIF(I47:I3846,"="&A1)-COUNTIF(I47:I3846,""&B1)


===========
Sorry for the delay in responding. Had a minor surgery yesterday on my
foot
and the anesthesia had me knocked out all day and still not functioning
real good.

I will check out using cells as you showed when I get back up to par.

Your help is much appreciated. I just started this project at a bad time.
Didn't realize the minor surgery would knock me out so bad. Not to mention
the owie and the pain pills that don't seem to do too much.

Oh well ... this too shall pass and I will conquer the evil spreadsheet.
:)

--
If you don't believe in Freedom of Speech for people you despise ... you
don't believe in it at all.





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of cells and total in one column, based on another column suffix Pierre Excel Worksheet Functions 5 October 31st 07 12:28 AM
how to count number of highlighted cells in column Mike K[_2_] Excel Discussion (Misc queries) 5 May 9th 07 08:41 PM
how do I count the number of gray-shaded cells within a range? Y Excel Worksheet Functions 4 August 10th 06 11:50 AM
count number of cells in range showing between 320 and 345 annieandtika Excel Worksheet Functions 6 June 25th 06 02:43 AM
Count cells based on date range in another column [email protected] New Users to Excel 1 May 5th 05 08:11 PM


All times are GMT +1. The time now is 05:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"