Filter formula and comparing dates
Question:
How we can count, if we have data in a spreadsheet and we want to filter data and then Count in between specific dates.
For example:
Look at the following screenshot of a spreadsheet containing data:
So now we want to calculate no. of rows that have:
"A&C" in "Column K"
"enrolled" in "Column O"
Dates between "03/2/2012" and "03/28/2012" in "Column K"
"unknown" in "Column Q"
Solution:
Here is the formula:
=COUNTA(IFERROR(FILTER('Individual Status'!K:K;'Individual Status'!O:O="enrolled";'Individual Status'!P:P >= DATE(2012;3;2);'Individual Status'!P:P <= DATE(2012;3;28);'Individual Status'!K:K="A&C";'Individual Status'!Q:Q="unknown")))
The result of this formula in this example would be 2, as in above table (screenshot of spreadsheet), we have two rows that satisfy all conditions.
I hope you this tutorial will help you understanding the filtering of data by comparing dates.
I hope the above solution will help you, and if you need more help then please do comment below on this blog itself I will try to help you out.
If this blog post was helpful to you,
and if you think you want to help me too and make my this blog survive then please donate here: http://igoogledrive.blogspot.com/2012/09/donate.html
Thanks,
Kishan,
YAY!! Thank you!!!
ReplyDelete