Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Odum
 
Posts: n/a
Default counting instances of specific times in fields with date and time

I have a column containing date and time, for example:

10/13/2006 7:30:00 PM

I'm trying to count the instances of specific times (i.e. how many 7:30 pm's
or 3:00 pm's).

Tried COUNTIF(D:D,"7:00:00PM"), but that doesn't work, I'm guessing because
the date and time are all one numeric string in Excel ... but I don't know
how to search and count just the time portion.

Any help appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default counting instances of specific times in fields with date and time

Try something like this:

With a list of date/time values in A1:A10

B1: =SUMPRODUCT(--(ROUND(MOD(A1:A10,1),6)=ROUND(--"7:30:00 PM",6)))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Rob Odum" wrote:

I have a column containing date and time, for example:

10/13/2006 7:30:00 PM

I'm trying to count the instances of specific times (i.e. how many 7:30 pm's
or 3:00 pm's).

Tried COUNTIF(D:D,"7:00:00PM"), but that doesn't work, I'm guessing because
the date and time are all one numeric string in Excel ... but I don't know
how to search and count just the time portion.

Any help appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Odum
 
Posts: n/a
Default counting instances of specific times in fields with date and t

Like a charm ... thanks!!!!

"Ron Coderre" wrote:

Try something like this:

With a list of date/time values in A1:A10

B1: =SUMPRODUCT(--(ROUND(MOD(A1:A10,1),6)=ROUND(--"7:30:00 PM",6)))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Rob Odum" wrote:

I have a column containing date and time, for example:

10/13/2006 7:30:00 PM

I'm trying to count the instances of specific times (i.e. how many 7:30 pm's
or 3:00 pm's).

Tried COUNTIF(D:D,"7:00:00PM"), but that doesn't work, I'm guessing because
the date and time are all one numeric string in Excel ... but I don't know
how to search and count just the time portion.

Any help appreciated!

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
Combine Date & Time Cells KrunoG Excel Discussion (Misc queries) 0 January 31st 06 08:08 PM
How to calculate Date & Time differences robs Excel Worksheet Functions 2 October 4th 05 04:22 PM
Using VLOOKUP with a Date and Time Charles Excel Discussion (Misc queries) 4 September 20th 05 06:38 PM
Imported Date & Time format with calcs. managed in excel from imrp Todd F. Excel Worksheet Functions 0 July 8th 05 09:03 PM
Counting States basied on the time and date stamp TJ Excel Discussion (Misc queries) 1 July 7th 05 04:50 PM


All times are GMT +1. The time now is 10:21 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"