I need to count the number of cells where the date in the a range of
cells is is equal to a certain year. The cells are formatted as a
date.
Example:
1-1-1976
2-3-1976
7-9-1975
9-7-1973
3-4-1976
========
If counting cells that is 1976 then the result should be:
3
Greetings...
I do feel like a doofus!! I created this spreadsheet about two years
ago and havn't had to make any changes to it.... Now I do and can't
remember why I did certain things (I know a lot of the help came from
this newsgroup!!) Now I'm trying to go back and apply a filter for
the year just as this thread is describing.
My Spreadsheet uses seveal sheets, and is used to track and summarize
my wife's Real Estate transactions by Month. The summeries are
mainly by Month and are counts of contracts, listings etc.... and
dollar amounts such as contract price and commissions etc...
Some transactions cross year bounderies... Listed in 2003 and the
contract and closing is in 2004.
I am trying to apply the solutions from this thread, but having
trouble implementing it..
Question1:
I want to add a cell where I can enter a year to report on(EG 2003.
I don't know what format that cell should be... should it be a Number
or a Text field.?
Question2:
I have found a difference in the Formulas used for the Month of
January and the rest of the Months...
For example I go through the Details sheet and the following cell
gives me a "Under Contract" count.
For January
=SUMPRODUCT((MONTH(Details!F5:F150)=1)*(YEAR(Details!F5:F150)<>1900)*(Details!M5:M150=""))
For February (and other months)
=SUMPRODUCT((MONTH(Details!K5:K150)=2)*(Details!M5:M150 = ""))
I remember at the time having a heck of a problem in January that was
fixed by a suggestion from someone in this newsgroup to add the <>1900
to the January Formula... and it works great.....
In both of these cases, how can I add the "filter" from another cell
that contains a year... 2003 ( in Cell B2 for example...)
I have tried all sorts of ways to add the cell compare to B2 to both
formulas without success. ( When I was attempting to do this, I was
adding the -- to the Sumproduct as this thread indicates.
I also have the same problem with Dollar summaries..
EG
=SUM(IF(((MONTH(Details!K5:K150)=1)*(YEAR(Details!K5:K150)<>1900)*(Details!M5:M150
= "")),Details!W5:W150))
Thanks
John