same issue =>
=IF(SEARCH("[C1]";D40;1);XLOOKUP("[C1]";Sheet3!A:A;Sheet3!B:B;;2);IF(SEARCH("[TFS]";D40;1);XLOOKUP("[TFS]";Sheet3!A:A;Sheet3!B:B;;2)))
the values on C1 are ok. the values on TFS return #VALUE!
the mapping I am using in excel is: enter image description here