Index and Match Gives Random Results
I am building an audit sheet to show where end dates and status do not correlate correctly. I've built and index and match for the End Date column that functions correctly, but cannot get the Status to Index and Match consistently. Source sheet sample below.
The Index and Match seems to work sporadically for the Status Column. My full formula is below. And an image of my audit sheet with the issue is below that. I cannot figure out why the Status reference is not consistent. All Task Name entries are unique. Column3 below is only the index and match formula for testing.
=IF(AND(INDEX({ReferenceEndDate}, MATCH([Task Name]@row, {ReferenceTaskName}, 0)) < TODAY(), INDEX({ReferenceStatus}, MATCH([Task Name]@row, {ReferenceTaskName})) <> "Completed"), "Red", "Green")
Best Answer
-
Try adding the zero into the last portion of your second MATCH function.
=IF(AND(INDEX({ReferenceEndDate}, MATCH([Task Name]@row, {ReferenceTaskName}, 0)) < TODAY(), INDEX({ReferenceStatus}, MATCH([Task Name]@row, {ReferenceTaskName}, 0)) <> "Completed"), "Red", "Green")
Answers
-
Try adding the zero into the last portion of your second MATCH function.
=IF(AND(INDEX({ReferenceEndDate}, MATCH([Task Name]@row, {ReferenceTaskName}, 0)) < TODAY(), INDEX({ReferenceStatus}, MATCH([Task Name]@row, {ReferenceTaskName}, 0)) <> "Completed"), "Red", "Green")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 516 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!