View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_] Ashish Mathur[_2_] is offline
external usenet poster
 
Posts: 1,766
Default 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.