#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Problems with Time!!

I have a worksheet with a months worth of data, listing calls to the company
each day. Each call has an 'Effective Date and Time' in the format of
01/01/2007 08:20:31 and I am interested in seeing how many calls come in
between 07:30 and 18:00 over the month. I have duplicated the 'Effective
Date and Time' column and formatted it to show just the time as hh:mm, that
has worked fine, what I now need to do is figure out how many fall into my
time period of 07:30 - 18:00, I don't want to have to count each entry (there
are 1104 for January and I have all of 2007 to do!) so would appreciate any
help anyone can offer.
Thanks in anticipation!!
Philip
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Problems with Time!!

=SUMPRODUCT(--(TEXT(A2:A2000,"mmmyyyy")="Jan2007"),--(MOD(A2:A2000,1)=--"07:30:00"),--(MOD(A2:A2000,1)<=--"18:00:00"))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Philip Drury" wrote in message
...
I have a worksheet with a months worth of data, listing calls to the
company
each day. Each call has an 'Effective Date and Time' in the format of
01/01/2007 08:20:31 and I am interested in seeing how many calls come in
between 07:30 and 18:00 over the month. I have duplicated the 'Effective
Date and Time' column and formatted it to show just the time as hh:mm,
that
has worked fine, what I now need to do is figure out how many fall into my
time period of 07:30 - 18:00, I don't want to have to count each entry
(there
are 1104 for January and I have all of 2007 to do!) so would appreciate
any
help anyone can offer.
Thanks in anticipation!!
Philip



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Problems with Time!!

I'm sorry to appear so dumb but I can't get this to work, It's me I know!
The column with the 'Effective' details in it is column F (starts at cell 3)
and the column I created with just the time is H, can you explain the formula
to me?
Thanks Philip

"Bob Phillips" wrote:

=SUMPRODUCT(--(TEXT(A2:A2000,"mmmyyyy")="Jan2007"),--(MOD(A2:A2000,1)=--"07:30:00"),--(MOD(A2:A2000,1)<=--"18:00:00"))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Philip Drury" wrote in message
...
I have a worksheet with a months worth of data, listing calls to the
company
each day. Each call has an 'Effective Date and Time' in the format of
01/01/2007 08:20:31 and I am interested in seeing how many calls come in
between 07:30 and 18:00 over the month. I have duplicated the 'Effective
Date and Time' column and formatted it to show just the time as hh:mm,
that
has worked fine, what I now need to do is figure out how many fall into my
time period of 07:30 - 18:00, I don't want to have to count each entry
(there
are 1104 for January and I have all of 2007 to do!) so would appreciate
any
help anyone can offer.
Thanks in anticipation!!
Philip




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Problems with Time!!

Bob's formula doesn't need that extra column.

You can just point at the range that contains the date/time.

Change A2:A2000 to F3:F####

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Philip Drury wrote:

I'm sorry to appear so dumb but I can't get this to work, It's me I know!
The column with the 'Effective' details in it is column F (starts at cell 3)
and the column I created with just the time is H, can you explain the formula
to me?
Thanks Philip

"Bob Phillips" wrote:

=SUMPRODUCT(--(TEXT(A2:A2000,"mmmyyyy")="Jan2007"),--(MOD(A2:A2000,1)=--"07:30:00"),--(MOD(A2:A2000,1)<=--"18:00:00"))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Philip Drury" wrote in message
...
I have a worksheet with a months worth of data, listing calls to the
company
each day. Each call has an 'Effective Date and Time' in the format of
01/01/2007 08:20:31 and I am interested in seeing how many calls come in
between 07:30 and 18:00 over the month. I have duplicated the 'Effective
Date and Time' column and formatted it to show just the time as hh:mm,
that
has worked fine, what I now need to do is figure out how many fall into my
time period of 07:30 - 18:00, I don't want to have to count each entry
(there
are 1104 for January and I have all of 2007 to do!) so would appreciate
any
help anyone can offer.
Thanks in anticipation!!
Philip





--

Dave Peterson
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
Problems with time format in excel Toosh Excel Worksheet Functions 2 September 12th 06 04:02 PM
time problems Stan Halls Excel Worksheet Functions 5 July 4th 06 08:01 PM
elapsed time problems MeredithS Excel Worksheet Functions 0 April 4th 06 08:57 PM
Problems with time John Excel Worksheet Functions 3 July 1st 05 07:05 PM
time and date problems still Michaela Excel Worksheet Functions 0 February 7th 05 05:31 PM


All times are GMT +1. The time now is 12:54 PM.

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"