Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Date and Time Function

Is there a way of using COUNTIF for counting all the times listed with
(example) the date 10/3/2006 regardless of the time associated with it?

10/2/2006 7:00
10/3/2006 7:00
10/3/2006 7:30
10/3/2006 8:00
10/4/2006 8:30
10/4/2006 8:00
10/4/2006 8:30
10/4/2006 8:40
10/4/2006 8:50
10/4/2006 8:50

I've tried using a wildcard and tilde after the date but must be doing
something wrong.
--
Very Thankful
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Date and Time Function

Say 10/3/2006 is in B1, then
=SUMPRODUCT(--(INT(A1:A10)=$B$1))

Regards,
Stefi

€˛Joey041€¯ ezt Ć*rta:

Is there a way of using COUNTIF for counting all the times listed with
(example) the date 10/3/2006 regardless of the time associated with it?

10/2/2006 7:00
10/3/2006 7:00
10/3/2006 7:30
10/3/2006 8:00
10/4/2006 8:30
10/4/2006 8:00
10/4/2006 8:30
10/4/2006 8:40
10/4/2006 8:50
10/4/2006 8:50

I've tried using a wildcard and tilde after the date but must be doing
something wrong.
--
Very Thankful

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Date and Time Function

=COUNTIF(A1:A10,"="&--"2006-10-03")-COUNTIF(A1:A10,"="&--"2006-10-04")

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Joey041" wrote in message
...
Is there a way of using COUNTIF for counting all the times listed with
(example) the date 10/3/2006 regardless of the time associated with it?

10/2/2006 7:00
10/3/2006 7:00
10/3/2006 7:30
10/3/2006 8:00
10/4/2006 8:30
10/4/2006 8:00
10/4/2006 8:30
10/4/2006 8:40
10/4/2006 8:50
10/4/2006 8:50

I've tried using a wildcard and tilde after the date but must be doing
something wrong.
--
Very Thankful



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Date and Time Function

Another way

=SUM(INDEX((INT(A1:A10)=--"2006-10-03")*1,0))

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Joey041" wrote in message
...
Is there a way of using COUNTIF for counting all the times listed with
(example) the date 10/3/2006 regardless of the time associated with it?

10/2/2006 7:00
10/3/2006 7:00
10/3/2006 7:30
10/3/2006 8:00
10/4/2006 8:30
10/4/2006 8:00
10/4/2006 8:30
10/4/2006 8:40
10/4/2006 8:50
10/4/2006 8:50

I've tried using a wildcard and tilde after the date but must be doing
something wrong.
--
Very Thankful



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Date and Time Function

THANK YOU!!!!
--
Very Thankful


"Joey041" wrote:

Is there a way of using COUNTIF for counting all the times listed with
(example) the date 10/3/2006 regardless of the time associated with it?

10/2/2006 7:00
10/3/2006 7:00
10/3/2006 7:30
10/3/2006 8:00
10/4/2006 8:30
10/4/2006 8:00
10/4/2006 8:30
10/4/2006 8:40
10/4/2006 8:50
10/4/2006 8:50

I've tried using a wildcard and tilde after the date but must be doing
something wrong.
--
Very Thankful



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Date and Time Function

which did you use?

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Joey041" wrote in message
...
THANK YOU!!!!
--
Very Thankful


"Joey041" wrote:

Is there a way of using COUNTIF for counting all the times listed with
(example) the date 10/3/2006 regardless of the time associated with it?

10/2/2006 7:00
10/3/2006 7:00
10/3/2006 7:30
10/3/2006 8:00
10/4/2006 8:30
10/4/2006 8:00
10/4/2006 8:30
10/4/2006 8:40
10/4/2006 8:50
10/4/2006 8:50

I've tried using a wildcard and tilde after the date but must be doing
something wrong.
--
Very Thankful



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
USING THE NESTED IF FUNCTION TO SEE IF A TIME DATE VALUE IS T OR F gunnerpatt Excel Discussion (Misc queries) 4 October 26th 06 05:23 PM
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
Date & Time function Tracy Excel Worksheet Functions 2 November 6th 04 12:48 AM


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