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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!