If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Counting TIME Only

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-08, 12:36
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 39
Counting TIME Only

Hey All,

What I'm looking to do is Count cells where time is equal to or exceeds 4:30 PM, as 1. (Left Column) Also, do the same in the right column, but only count the cells where time is equal to or exceeds 4:30 PM, but is no greater than 5:00PM, as 1.
The columns in the screenshot have dates and times. Can anyone provide me with a formula solution?

Thank you!
Attached Thumbnails
Counting TIME Only-000.png  
Reply With Quote
  #2 (permalink)  
Old 04-23-08, 10:07
jf0rce jf0rce is offline
Registered User
 
Join Date: Jan 2008
Posts: 19
How about using the IF statement? Have you tried that?
Reply With Quote
  #3 (permalink)  
Old 04-23-08, 12:25
EXCELORATOR EXCELORATOR is offline
Registered User
 
Join Date: Apr 2008
Posts: 2
Does anyone really know what time it is?

Hi - I played around with this briefly. Set up a second range of cells where the top left cell corresponds to the top left cell of the original range(i.e.-B2).
Formula =ROUNDDOWN(B2,0)-B2
copy this formula to all of the cells in the new range. This essentially removes the date from the values. Then in a cell outside of the ranges, use a =(COUNTIF(range:range,">4:29")-COUNTIF(range:range,">5:01))

to count all of the cells with a time value that you indicated wanting to know.

Good luck
Reply With Quote
  #4 (permalink)  
Old 04-23-08, 13:37
EXCELORATOR EXCELORATOR is offline
Registered User
 
Join Date: Apr 2008
Posts: 2
Formula Correction

=B2-ROUNDDOWN(B2,0)
round off date to leave only time

=(COUNTIF(G2:J25,">4:29")-COUNTIF(G2:J25,">5:00"))
all greater than 4:29 minus all greater than 5:00
Reply With Quote
  #5 (permalink)  
Old 04-24-08, 10:25
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 39
Excelorator,

YOU flippin ROCK!
Thanks a ton....that will do the trick. Dam - that's awesome!

MillB
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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