sparkytech
Board Regular
- Joined
- Mar 6, 2018
- Messages
- 96
- Office Version
- 365
- 2019
I have a sheet with dates listed in columns B:12 to C:15 in a table. Column "B" is "Start" and column "C" is "End". Column A:12 to A:15 has a drop down list with choices of "Not Started", "Started", "Completed", and "Cancelled". The sheet calculates how many dates remain for the day, week, month, and year. It sort of works. I want to calculate these values only if the value in "A" is "Not Started" or "Started". I am also having problems calculating the "Week" value, as I want it to be the current week, not the next 7 days. I cant figure out how to enter a picture of my sheet, or the sheet itself. Any ideas what I am doing wrong?
Formulas below:
Today formula:
=SUMPRODUCT((INT(Table134346[[Start]:[End]])=TODAY())*1)
Tomorrow formula:
=SUMPRODUCT((INT(Table134346[[Start]:[End]])=TODAY()+1)*1)
This Week formula:
=COUNTIFS(Table134346[[Start]:[End]],">="&TODAY(),Table134346[[Start]:[End]],"<="&TODAY()+7)
This Month formula:
=SUMPRODUCT((MONTH(Table134346[[Start]:[End]])=MONTH(TODAY()))*(YEAR(Table134346[[Start]:[End]])=YEAR(TODAY())))
This Year formula:
=SUMPRODUCT(1*(YEAR(Table134346[[Start]:[End]])=(YEAR(TODAY()))))
Formulas below:
Today formula:
=SUMPRODUCT((INT(Table134346[[Start]:[End]])=TODAY())*1)
Tomorrow formula:
=SUMPRODUCT((INT(Table134346[[Start]:[End]])=TODAY()+1)*1)
This Week formula:
=COUNTIFS(Table134346[[Start]:[End]],">="&TODAY(),Table134346[[Start]:[End]],"<="&TODAY()+7)
This Month formula:
=SUMPRODUCT((MONTH(Table134346[[Start]:[End]])=MONTH(TODAY()))*(YEAR(Table134346[[Start]:[End]])=YEAR(TODAY())))
This Year formula:
=SUMPRODUCT(1*(YEAR(Table134346[[Start]:[End]])=(YEAR(TODAY()))))