Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Annie
 
Posts: n/a
Default COUNTIF criteria using date ranges?

How would I indicate that I want to count the number of dates fall
between Date A and Date B? I looked in the other message threads about
subtracting one COUNTIF from another, but I don't think it works for
dates.

Thank you,
Annie

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Put your test dates in a cell, then use COUNTIF like so

=COUNTIF(A5:A30,"<="&A1)-COUNTIF(A5:A30,"<="&A2)



"Annie" wrote:

How would I indicate that I want to count the number of dates fall
between Date A and Date B? I looked in the other message threads about
subtracting one COUNTIF from another, but I don't think it works for
dates.

Thank you,
Annie


  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

This also works

=COUNTIF(P1:P10,"<01/03/2005")-COUNTIF(P1:P10,"<01/02/2005")

but make sure that you format the cell as general as it tends to try and
force date format.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Duke Carey" wrote in message
...
Put your test dates in a cell, then use COUNTIF like so

=COUNTIF(A5:A30,"<="&A1)-COUNTIF(A5:A30,"<="&A2)



"Annie" wrote:

How would I indicate that I want to count the number of dates fall
between Date A and Date B? I looked in the other message threads about
subtracting one COUNTIF from another, but I don't think it works for
dates.

Thank you,
Annie




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
Date range criteria and Pivot tables (again!) DerbyJim1978 Excel Worksheet Functions 3 July 13th 05 10:14 PM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM
dsum with date criteria Jed Martin Excel Worksheet Functions 0 March 24th 05 05:29 PM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM
Formula to determine a future date based on criteria David Excel Worksheet Functions 2 December 15th 04 07:51 PM


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