#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Data Count of cells

Dear Tean,
please help me in solving in below example.

I want to count how many calls loggedd for the diffiernt date for specific
time in below given format
e.g 0:00hrs to 3hrs 3:00hrs to 6hrs 6to 9hrs 15hrs to 18:00hrs


7/6/2008 13:00
7/6/2008 11.10 AM
7/6/2008 11.30 AM
7/7/2008 23:15
7/7/2008 23:15
7/6/2008 20:15
7/5/2008 03:15
7/6/2008 23:20

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Data Count of cells

For 0:00hrs to 3hrs, use: =COUNTIF(B:B,"<"&3/24)

For your next range, 3:00hrs to 6hrs, use this:

=COUNTIF(B:B,"<"&6/24) - COUNTIF(B:B,"<"&3/24)

The next range, 6 to 9hrs, will be given by:

=COUNTIF(B:B,"<"&9/24) - COUNTIF(B:B,"<"&6/24)

Similarly, 9hrs to 15hrs will be obtained with:

=COUNTIF(B:B,"<"&15/24) - COUNTIF(B:B,"<"&9/24)

and so on.

Hope this helps.

On Aug 28, 11:25*pm, Vinu wrote:
Dear Tean,
please help me in solving in below example.

I want to count how many calls loggedd for the diffiernt date for specific
time in below given format
e.g 0:00hrs to 3hrs *3:00hrs to 6hrs 6to 9hrs 15hrs to 18:00hrs

7/6/2008 * * * *13:00
7/6/2008 * * * *11.10 AM
7/6/2008 * * * *11.30 AM
7/7/2008 * * * *23:15
7/7/2008 * * * *23:15
7/6/2008 * * * *20:15
7/5/2008 * * * *03:15
7/6/2008 * * * *23:20


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Data Count of cells

You may have missed the fact that he's got dates as well as times, Pete.
Need MOD(...,1) to get rid of the date part and be left with time.
If the OP is saying that a result is wanted for each time slot for each day,
then it looks like a SUMPRODUCT, with a conditioon on INT(...) for the date
part and on MOD(...,1) for the time part.
--
David Biddulph

"Pete_UK" wrote in message
...
For 0:00hrs to 3hrs, use: =COUNTIF(B:B,"<"&3/24)

For your next range, 3:00hrs to 6hrs, use this:

=COUNTIF(B:B,"<"&6/24) - COUNTIF(B:B,"<"&3/24)

The next range, 6 to 9hrs, will be given by:

=COUNTIF(B:B,"<"&9/24) - COUNTIF(B:B,"<"&6/24)

Similarly, 9hrs to 15hrs will be obtained with:

=COUNTIF(B:B,"<"&15/24) - COUNTIF(B:B,"<"&9/24)

and so on.

Hope this helps.

On Aug 28, 11:25 pm, Vinu wrote:
Dear Tean,
please help me in solving in below example.

I want to count how many calls loggedd for the diffiernt date for specific
time in below given format
e.g 0:00hrs to 3hrs 3:00hrs to 6hrs 6to 9hrs 15hrs to 18:00hrs

7/6/2008 13:00
7/6/2008 11.10 AM
7/6/2008 11.30 AM
7/7/2008 23:15
7/7/2008 23:15
7/6/2008 20:15
7/5/2008 03:15
7/6/2008 23:20



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
How to count all cells which have same data Judoguy Excel Discussion (Misc queries) 3 March 8th 07 10:38 PM
How to count all cells which have same data john Excel Discussion (Misc queries) 0 March 6th 07 09:24 AM
Count Only Empty Cells AFTER Cells with Data David Excel Worksheet Functions 2 September 15th 06 06:05 PM
Count data in cells DD Excel Worksheet Functions 3 June 7th 05 09:06 PM
Count cells with data shoiley New Users to Excel 5 November 28th 04 07:23 PM


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