PC Review


Reply
Thread Tools Rate Thread

Count number of cells with value between date range - Excel

 
 
New Member
Join Date: Jul 2005
Posts: 1
 
      18th Jul 2005
I need to work out a formula that will allow me to count the number of products despatched between two dates. The dates are in cells A1 and B1, and the other cells with dates of despatch in are in cell C1 to C100. I want to have another cell which basically counts the number of items despatchedbetween the dates in A1 and B1. Can anyone help?

Last edited by Sumo; 18th Jul 2005 at 11:44 PM..
 
Reply With Quote
 
 
 
 
New Member
PapaBear56's Avatar
Join Date: Jul 2005
Location: Jacksonville, FL
Posts: 3
 
      20th Jul 2005
I'm sure there may be a better way to do it but one, quick and dirty way would be to use column D with a formula that tests each "C" cell to see if it falls between A1 and B1. If it does, have the formula print an "X" and then simply count the "X's".

D Column Formula: =if(and($c1>=$a$1,$c1<=$b$1),"X","") -- Put formula in cell D1 and drag through D100
Cell D101: =countif($c$1:C$100,"X")

A simpler way could also be to put a formula in cell C101: =subtotal(9,$c$1:$C$100) -- After you place the formula, you then apply a filterto cells C1:C100 testing for greater than/or equal to A1 and testing for less than/or equal to B1. Apply the filter with the C1 through C100 highlighted and view the "COUNT" in the status bar.

I hope this helps!

 
----------------------------------------------------------------------------------------
Thanks & Have A Great Day!!!
PapaBear56
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of cells containing a specific date range --Viewpoint Microsoft Excel Discussion 7 30th Dec 2009 06:02 PM
Count the number of cells containing a date within a range Scoffers Microsoft Excel Misc 5 24th Feb 2009 11:00 AM
How do Count a the number of times a date range appears within a date range!? leelondon Microsoft Excel Discussion 5 4th Oct 2006 01:12 PM
Count Number of Cells in a Range TKrepitch@aol.com Microsoft Excel Discussion 3 5th Jun 2006 08:33 PM
A calculation to count all cells ='D' where the offset cells in range have dates <= todays date AlanN Microsoft Excel Misc 2 29th Jan 2004 04:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:04 PM.