Managed to replicate this with JMP16.0. JMP will return #NAME? for cells with XLOOKUP formula. Attached is Excel sheet with three different formulas: XLOOKUP, SUM and LOOKUP in which SUM and LOOKUP work fine. I would guess that this will be fixed in future version of JMP (but no idea in which).
For a workaround you could recalculate the values after importing the data from excel with JMP formula.
-Jarmo