How to fix INVAID DATA TYPE, referencing start and end dates, & duration to calculate % complete
I am using a project sheet with the formula below to calculate the % complete based on the duration of the task, and start and finish dates. However, if there are not dates in the start and finish column I am getting an INVALID DATA TYPE error. I've tried using IFERROR in my equation but I cannot get it to work. I plan to share this sheet for others to fill in and would like to get rid of the error message. Please help.
=IF(Start@row <= TODAY(), NETWORKDAYS(Start@row, MIN(TODAY(), Finish@row)) / Duration@row, 0)
Best Answer
-
@KristyQu thank you for sharing that. And I apologize I misread your questions. Try this -
=if(or(start@row="",finish@row=""),"",IF(Start@row <= TODAY(), NETWORKDAYS(Start@row, MIN(TODAY(), Finish@row)) / Duration@row, 0))
Answers
-
@KristyQu what are you trying to achieve by dividing by the duration? I think that may be your issue.
-
Hello, the idea is to have my % complete column to automatically update to represent progress of each task, based on duration over the start and finish dates. I'm trying to get the sheet to do as much of the updates as possible without changing too many cells. This sheet will be used by team members within my organization that are not the most computer savvy. Below is a draft of the sheet, thanks.
.
-
@KristyQu thank you for sharing that. And I apologize I misread your questions. Try this -
=if(or(start@row="",finish@row=""),"",IF(Start@row <= TODAY(), NETWORKDAYS(Start@row, MIN(TODAY(), Finish@row)) / Duration@row, 0))
-
That fixed it, thank you!
-
You're welcome! let me know if you need anything else.
-
It is also a best practice to always wrap your formula with the =IFERROR( wherever there are chances of getting invalid data type, i.e. there are either blanks in your cells or data that can be read incorrectly by the system.
Hope this helps,
Cheers!
Ipshita
Ipshita Mukherjee
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!