Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Countif for finding a Time input

Got a big long column D containing times formatted as i.e. 13:30. I am
trying to do a countif function for finding the count of inputs between 6 am
and 6:59 am, and 7am and 7:59 etc. Can't find the right combination of
using logic = and < within the countif formula... appreciate any help
here..

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Countif for finding a Time input

Hi,

maybe this for 06:00 to 06:59:59

=SUMPRODUCT((D1:D8=TIME(6,0,0))*(D1:D8<TIME(7,0,0 )))

or you can do this for 06:00 to 06:59:59 and drag down for subsequent hours

=SUMPRODUCT((D1:D8=TIME(ROW(A6),0,0))*(D1:D8<TIME (ROW(A7),0,0)))
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Meebers" wrote:

Got a big long column D containing times formatted as i.e. 13:30. I am
trying to do a countif function for finding the count of inputs between 6 am
and 6:59 am, and 7am and 7:59 etc. Can't find the right combination of
using logic = and < within the countif formula... appreciate any help
here..

.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countif for finding a Time input

Can't find the right combination of using logic
= and < within the countif formula...


Like this...

=COUNTIF(A1:A20,"="&TIME(6,0,0))-COUNTIF(A1:A20,"="&TIME(7,0,0))

Might be easier to use this...

=SUMPRODUCT(--(HOUR(A1:A20)=6))

--
Biff
Microsoft Excel MVP


"Meebers" wrote in message
g.com...
Got a big long column D containing times formatted as i.e. 13:30. I am
trying to do a countif function for finding the count of inputs between 6
am and 6:59 am, and 7am and 7:59 etc. Can't find the right combination of
using logic = and < within the countif formula... appreciate any help
here..



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Countif for finding a Time input

Good One!!

"T. Valko" wrote in message
...
Can't find the right combination of using logic
= and < within the countif formula...


Like this...

=COUNTIF(A1:A20,"="&TIME(6,0,0))-COUNTIF(A1:A20,"="&TIME(7,0,0))

Might be easier to use this...

=SUMPRODUCT(--(HOUR(A1:A20)=6))

--
Biff
Microsoft Excel MVP


"Meebers" wrote in message
g.com...
Got a big long column D containing times formatted as i.e. 13:30. I am
trying to do a countif function for finding the count of inputs between 6
am and 6:59 am, and 7am and 7:59 etc. Can't find the right combination
of using logic = and < within the countif formula... appreciate any
help here..



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Countif for finding a Time input

Thanks Mike....I used the second one. MikeG

"Mike H" wrote in message
...
Hi,

maybe this for 06:00 to 06:59:59

=SUMPRODUCT((D1:D8=TIME(6,0,0))*(D1:D8<TIME(7,0,0 )))

or you can do this for 06:00 to 06:59:59 and drag down for subsequent
hours

=SUMPRODUCT((D1:D8=TIME(ROW(A6),0,0))*(D1:D8<TIME (ROW(A7),0,0)))
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Meebers" wrote:

Got a big long column D containing times formatted as i.e. 13:30. I am
trying to do a countif function for finding the count of inputs between 6
am
and 6:59 am, and 7am and 7:59 etc. Can't find the right combination of
using logic = and < within the countif formula... appreciate any help
here..

.

Reply
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
countif not finding all the required data [email protected] Excel Worksheet Functions 4 August 13th 09 04:03 PM
Input Time in AM/PM ub Excel Discussion (Misc queries) 3 November 19th 08 04:56 AM
Time Input Michael Excel Discussion (Misc queries) 5 February 10th 06 07:20 PM
Finding a record based on user input Soundman Excel Discussion (Misc queries) 5 June 21st 05 03:06 AM
can you input time (hh:mm:ss) without having to input the colon i. Lexicon Excel Discussion (Misc queries) 4 January 11th 05 02:09 PM


All times are GMT +1. The time now is 09:01 AM.

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

About Us

"It's about Microsoft Excel"