Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sarjak
 
Posts: n/a
Default CountIf on Date field


I am trying to summarize a workbook. I have to count specific dates in
my summary (using fields from the previous sheets), however, the date
fields are Date/Time fields and cannot be separated. Is there someway I
can create a CountIf formula to ignore the time portion?
Thanks


--
sarjak
------------------------------------------------------------------------
sarjak's Profile: http://www.excelforum.com/member.php...o&userid=29402
View this thread: http://www.excelforum.com/showthread...hreadid=518376

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default CountIf on Date field

Try something like this:

For a list of dates/times in A1:A100
And a reference date in B1

The count of the B1 date in A1:A100 is:
C1: =SUMPRODUCT(--(TRUNC(A1:A100)=B1))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"sarjak" wrote:


I am trying to summarize a workbook. I have to count specific dates in
my summary (using fields from the previous sheets), however, the date
fields are Date/Time fields and cannot be separated. Is there someway I
can create a CountIf formula to ignore the time portion?
Thanks


--
sarjak
------------------------------------------------------------------------
sarjak's Profile: http://www.excelforum.com/member.php...o&userid=29402
View this thread: http://www.excelforum.com/showthread...hreadid=518376


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sarjak
 
Posts: n/a
Default CountIf on Date field


thank you for the reply. But I dont think this is what I am looking for.
I tried it and recieved a number, reformatted it to a date and was way
off.


--
sarjak
------------------------------------------------------------------------
sarjak's Profile: http://www.excelforum.com/member.php...o&userid=29402
View this thread: http://www.excelforum.com/showthread...hreadid=518376

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default CountIf on Date field

Ron's solution was perfect for the problem you stated.

Was the issue that the result came back as a date? If so, reformat as
General or Comma and you'll have your answer.

Was the issue that you didn't state your problem correctly? If so, try
again. & we'll try to help
"sarjak" wrote:


thank you for the reply. But I dont think this is what I am looking for.
I tried it and recieved a number, reformatted it to a date and was way
off.


--
sarjak
------------------------------------------------------------------------
sarjak's Profile: http://www.excelforum.com/member.php...o&userid=29402
View this thread: http://www.excelforum.com/showthread...hreadid=518376


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 do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Date & Time Field Diane Walker Excel Discussion (Misc queries) 2 January 10th 06 03:30 PM
excel today countif over expired date JonnieP Excel Worksheet Functions 2 November 30th 05 10:38 PM
Countif and date check for second criteria [email protected] Excel Worksheet Functions 0 November 29th 05 09:40 PM
How do I add a date field in a spreadsheet? Minimidge Excel Worksheet Functions 2 January 6th 05 04:57 PM


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