Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Count Function in Date Field

Hi all,
I have a database which gives me the total calls taken by different
executives in a day and also the time at which each particular call was
recorded eg. 7:53:35 PM
i need to find a count of the calls taken by each in every hour . ie
hourly call breakup .. eg.

Time Slab Exec A Exec B Exec C
----------------------------------------------------------
Between 8 to 9 AM 10 8 5
Between 9 to 10 AM 8 11 12

i want to do this in Excel 97'. How can I get this using the countif
function
Please revert asap

Warm regards,
Rajesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Count Function in Date Field

Rajesh,

Here's one formula;a for between 7 & 8 for Exec A

=SUMPRODUCT(($A$1:$A$20=TIME(7,0,0))*($A$1:$A$20< TIME(8,0,0))*($B$1:$B$20="
A"))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Rajesh Sharma" wrote in message
...
Hi all,
I have a database which gives me the total calls taken by different
executives in a day and also the time at which each particular call was
recorded eg. 7:53:35 PM
i need to find a count of the calls taken by each in every hour . ie
hourly call breakup .. eg.

Time Slab Exec A Exec B Exec C
----------------------------------------------------------
Between 8 to 9 AM 10 8 5
Between 9 to 10 AM 8 11 12

i want to do this in Excel 97'. How can I get this using the countif
function
Please revert asap

Warm regards,
Rajesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Count Function in Date Field

this can be easily done in one step using a pivot table. select your data,
then go Data=Pivot Table.

Have the executives ID/Name as your column field and the time as your row
field. Put Exec in the data area and it will default to count of Excel.
then finish up (if you have xl2000 or later, this screen in on the last
dialog, under layout button).

Now click in the list of time, right click and select group and outline.
For group, choose just hour and set the start to 0:00, clear end.

This should give you what you want.

--
Regards,
Tom Ogilvy


"Rajesh Sharma" wrote in message
...
Hi all,
I have a database which gives me the total calls taken by different
executives in a day and also the time at which each particular call was
recorded eg. 7:53:35 PM
i need to find a count of the calls taken by each in every hour . ie
hourly call breakup .. eg.

Time Slab Exec A Exec B Exec C
----------------------------------------------------------
Between 8 to 9 AM 10 8 5
Between 9 to 10 AM 8 11 12

i want to do this in Excel 97'. How can I get this using the countif
function
Please revert asap

Warm regards,
Rajesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Count Function in Date Field

Thanx Tom,
i got better results in Pivot Table than I cud ever get with countif .
I will implement it rite away, In case I wish to generate a weekly
report, wat else do I add for Datewise, hourly call breakup.

Warm regards,
Rajesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Count Function in Date Field

If you have dates and times in one column, you can group on weeks and hours
I believe. If the dates are in a separate column, then group each of the
columns separately.

--
Regards,
Tom Ogilvy

"Rajesh Sharma" wrote in message
...
Thanx Tom,
i got better results in Pivot Table than I cud ever get with countif .
I will implement it rite away, In case I wish to generate a weekly
report, wat else do I add for Datewise, hourly call breakup.

Warm regards,
Rajesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!





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
Multiple field count function use Judy Rose Excel Worksheet Functions 2 March 4th 08 12:06 AM
New date based on one date field minus minutes in another field [email protected] Excel Discussion (Misc queries) 1 December 25th 07 04:05 PM
Linked date field in worksheet defaults a blank field as 1/0/1900 AmnNkD Excel Worksheet Functions 2 September 12th 06 05:42 PM
Converting a date field into a month-year only field C.Hirsch Excel Discussion (Misc queries) 1 April 25th 06 12:08 AM
How to Join/concatenate a date field with a time field in Excel? Alan Excel Discussion (Misc queries) 4 August 9th 05 10:07 PM


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