IF Formula for a sheet
Comments
-
What precisely are you trying to accomplish with the formula? Return a number of days?
-
I am trying to return days over due from the Completion Date and the Target Date
-
So you want to know two separate numbers or the combination of the two numbers (either subtraction or addition)?
-
I would want to know the subtraction of the Target Date from the Completion Date and along with Today's date so we can have an accurate number of days of being overdue
-
So you are wanting to see the current status of a task that is active, so the difference between today's date and the Target Date where a positive number means you are "ok" but a negative number means you are behind.
And you are also wanting to see the static number for the difference between the Target Date and the Completion Date, where, again, positive is good and negative is bad.
Is that accurate?
-
That is accurate
-
The following is how you can accomplish this. It is with two separate formulas in two new Columns that I titled Days Remaining and Ahead/Behind.
Based on your screen shot I am assuming that you are using the =TODAY() to return the current date automatically. With that assumption the following formulas might work.
For Days Remaining: =SUM([Target Date]3 - [Todays Date]3) - This is used to show you the current days remaining or behind on a specified task that is ACTIVE.
For Ahead/Behind: =SUM([Target Date]3 - [Completion Date]3) - This is used to show the static day(s) that a task was complete ahead of, on time or behind the specified Target date.
If I was understanding your request correctly, this will give you the information you are looking to capture.
I attached a screen shot of the Sheet as I created it, matching your original Columns and Rows and adding the two new Columns.
-
That worked perfect thank you so much
-
Not a problem. I enjoy passing along what I have learned as I trudge through SmartSheet and it's capabilities.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!