I am trying to use an Index/Match function to connect two sheets, a Fleet Task sheet and a Fleet Inventory. I would like the function to search through the Task sheet and it finds tasks with a status of "Not Started" or "In Progress" to mark a checkbox associated with that vehicle in the Inventory.
I ran into an issue when trying to use just an IF function because I think when it matches the vehicle ID once, it stops cycling through the rows. I think I need some combination of the IFERROR and IF functions.
This function is successful only if all the tasks for a vehicle are the same status (ie. completed), but not if there's a mix of completed and pending work.
=IF((INDEX({Fleet Task Assignments - Status}, MATCH([CPC fleet #]@row, {Fleet Task Assignments - Vehicle ID}, 0)) = "In Progress"), true, false)
I also tried to use the IFERROR, but I'm not sure how to add the true/false piece that will mark the checkbox once matched.
=IFERROR(IFERROR(INDEX({Fleet Task Assignments - Status}, MATCH([CPC fleet #]@row, {Fleet Task Assignments - Vehicle ID}, 0)) = "Not Started"), INDEX({Fleet Task Assignments - Status}, MATCH([CPC fleet #]@row, {Fleet Task Assignments - Vehicle ID}, 0)) = "In Progress")), INDEX({Fleet Task Assignments - Status}, MATCH([CPC fleet #]@row, {Fleet Task Assignments - Vehicle ID}, 0)) = "Extended"))