I've been fighting this one all morning, so really hope you can help.
I have have a sheet that captures changes to employee records which index matches to a company organisation sheet to pull the employee's name based on the employee ID that has been entered in the request form. However, sometimes the rerquest is for multiple employees, so there is no employee ID entered. I have this working fine using formula
=IF(ISBLANK([Affected Spirit ID]@row), "", INDEX({Spirit ORG}, MATCH([Affected Spirit ID]@row, {Employee_ID}, 0), 3))
However, I know need to make it index match to a second orgnisation sheet as well which cover updates to the employee records and this I have working well using formula
=IF(ISBLANK([Affected Spirit ID]@row), "", INDEX({Spirit Org Additions}, MATCH([Affected Spirit ID]@row, {Spirit Org Additions Employee_ID}, 0), 3))
How do I combine these 2, so that if the Affected Spirit Id is blank it index matches to both Spirit Org and Spirit Org additions, I keep getting #incorrect argument with
=IF(ISBLANK([Affected Spirit ID]@row), "", (IFERROR(INDEX({Spirit ORG}, MATCH([Affected Spirit ID]@row, {Employee_ID}, 0), 3) <> "", INDEX({Spirit ORG}, MATCH([Affected Spirit ID]@row, {Employee_ID}, 0), 3), IF(IFERROR(INDEX({Spirit Org Additions}, MATCH([Affected Spirit ID]@row, {Spirit Org Additions Employee_ID}, 0), 3), "") <> "", INDEX({Spirit Org Additions}, MATCH([Affected Spirit ID]@row, {Spirit Org Additions Employee_ID}, 0), 3), ""))))
I'm tearing my hair out