IF/INDEX function returning #INVALID DATA TYPE
In my function below i am trying to fill the actual start date column with a new date if the predecessor task's duration was extended. ive replaced the Predecessors@row with a number value and the formula returned actual dates, so i suspect this is where i incorrectly identify a row number in the index function. i also understand that this formula cant work for the first row and rows without predecessors. any help would be appreciated!
=IF(INDEX($Predecessors$1:$[Actual Duration (days)]$31, Predecessors@row, 6) = INDEX($Predecessors$1:$[Actual Duration (days)]$31, Predecessors@row, 9), [Initial Start Date]@row, (INDEX($Predecessors$1:$[Actual Duration (days)]$31, Predecessors@row, 7)) + (INDEX($Predecessors$1:$[Actual Duration (days)]$31, Predecessors@row, 9)))
Answers
-
@connormaloney -- Invalid Data Type is often triggered around dates when the wrong column type is selected (i.e. you are importing a date into a non-date column, or most-often you are trying to display non-date information in a date column).
Check to ensure that each column is a Date column (in the column properties). If everything seems correct, troubleshoot by testing your formula in parts. First, does the criteria in the if statement work (use a non-date column to check). Then check the date inputs to ensure they work as well.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!