Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Using COUNT for dates and times

There are 3 ocurrences of 'Adams' in A1:A19 and 3 occurrences of '08:00:00'
(in time format) between C1:C19, linked to Adams. There is one occurrence of
Adams - 08:15:00:00 between A1:A19 and C1:C19.

What function and formula would I use in A20 to return a value of 3 (i.e. to
count the Adams at 08:00:00 occurreces)?

If I wanted to count Adams (Column A) and (in date format) say, 27/9/06 (in
column B), would I use the same formula?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Using COUNT for dates and times

Hi,

Give a try to following :

=SUMPRODUCT(--(A1:A19)="Adams"*--(C1:C19)="08:00:00")

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Using COUNT for dates and times

4 typos and a logic error

=SUMPRODUCT(--(A1:A19="Adams"),--(C1:C19=--"08:00:00"))


other part


=SUMPRODUCT(--(A1:A19="Adams"),--(B1:B19=--"2006-09-27"))
--


HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Carim" wrote in message
s.com...
Hi,

Give a try to following :

=SUMPRODUCT(--(A1:A19)="Adams"*--(C1:C19)="08:00:00")

HTH
Cheers
Carim



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Using COUNT for dates and times

Hi Bob,


Thanks for correcting my mistakes ...
I should have been more attentive ...

Carim

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Using COUNT for dates and times

Bob,

Many thanks for your help - it works perfectly!

Tony

"Bob Phillips" wrote:

4 typos and a logic error

=SUMPRODUCT(--(A1:A19="Adams"),--(C1:C19=--"08:00:00"))


other part


=SUMPRODUCT(--(A1:A19="Adams"),--(B1:B19=--"2006-09-27"))
--


HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Carim" wrote in message
s.com...
Hi,

Give a try to following :

=SUMPRODUCT(--(A1:A19)="Adams"*--(C1:C19)="08:00:00")

HTH
Cheers
Carim






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Using COUNT for dates and times

Carim,

Many thanks for your help!

Tony

"Carim" wrote:

Hi Bob,


Thanks for correcting my mistakes ...
I should have been more attentive ...

Carim


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
Calculate times between dates and times in Excel Helio Excel Discussion (Misc queries) 1 March 25th 10 04:29 AM
count text appear how many times & put in respec col??eg 1st times Piglet Excel Discussion (Misc queries) 3 May 29th 08 07:53 AM
Count times between 2 times and 2 dates Jeremy Ellison Excel Programming 2 December 19th 05 01:28 AM
Count No. of times Dates are repeated Mandeep Dhami Excel Discussion (Misc queries) 6 December 8th 05 02:55 AM
Times and Dates rob1972 Excel Discussion (Misc queries) 0 March 7th 05 04:40 AM


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