Hi All, Just need a little help with a formula. I want a formula that will count a column of data and let me know how many of the dates in the column are before a set date. e.g. how many dates in the column are before 08/5/06?
Chris
Hi All, Just need a little help with a formula. I want a formula that will count a column of data and let me know how many of the dates in the column are before a set date. e.g. how many dates in the column are before 08/5/06?
Chris
Hi,
Try sumproduct
http://www.xldynamic.com/source/xld.....html#examples
Something like
=SUMPRODUCT(--(A2:A2000<DATEVALUE("08/05/06")*(A2:A2000>0)))
VBA Noob
Last edited by VBA Noob; 03-08-2007 at 06:40 AM.
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Currnetly using =COUNTIF(D$10:D$155,"<08/04/2006")
how can i suplement the date of 08/04/06 with a cell reference with an ever changing number?
Chris
As suggested above, use SUMPRODUCT:
=SUMPRODUCT(--(D$10:D$155<F1))
Where F1 is the referenced date cell.
HTH
Jason
Great, the sum product formula works but i need it to exclude blank cells, any idea how to do this?
Chris
Sure:
=SUMPRODUCT(--(D$10:D$155<F1)*(D$10:D$155<>""))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks