ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   counting dates <= 7 days ago based on criteria in a diff column (https://www.excelbanter.com/excel-worksheet-functions/253184-counting-dates-%3D-7-days-ago-based-criteria-diff-column.html)

Lori

counting dates <= 7 days ago based on criteria in a diff column
 
I have a spreadsheet that holds all tasks for a project. Column D holds a
catagory and column Q holds the date closed. I need a formula (on a separate
sheet) that counts all tasks of a specific category that were closed in the
past 7 days. I already have a formula that calculates all tasks that were
closed in the past 7 days, just need to add the additional criterion of the
category.

Ashish Mathur[_2_]

counting dates <= 7 days ago based on criteria in a diff column
 
Hi,

Try this

=sumproduct((sheet1!D2:D30=A2)*((today()-sheet1!Q2:Q30)=7))

A2 on sheet2 has the specific category for which you want to count the
closed tasks

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Lori" wrote in message
...
I have a spreadsheet that holds all tasks for a project. Column D holds a
catagory and column Q holds the date closed. I need a formula (on a
separate
sheet) that counts all tasks of a specific category that were closed in
the
past 7 days. I already have a formula that calculates all tasks that were
closed in the past 7 days, just need to add the additional criterion of
the
category.




All times are GMT +1. The time now is 03:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com