I have an 'xlookup' formula in cell C4 that spills as expected to the required rows, but I'm having an issue with the [if not found] argument not returning the correct data. The data I want [if not found] to return is text in the same row from another spilled array starting in cell E4. (note: the spilled arrays from C4 and E4 always have the same number of rows) I can't think of a good way to present example data due to the complexity, so here is the gist of the formula in cell C4:
The issue I'm having is that the [if not found] argument only returns the text from cell E4 no matter what row is being calculated. I expected that the spilled formula in row 7 would return the text from cell E7 for [if not found], but it only returns the text in cell E4.
Simplifying the formula in C4 to the following also always results in the text from cell E4 being returned for [if not found]:
I also tried this with the same result:
To troubleshoot, I tried placing
in another cell in row 7 with it returning the desired result, so I am very confused at this point.
What can I do to return the correct data for the current row [if not found]? Thanks
Excel Formula:
=XLOOKUP(D4#, lookup_array, return_array, "Not found: "&E4#)
The issue I'm having is that the [if not found] argument only returns the text from cell E4 no matter what row is being calculated. I expected that the spilled formula in row 7 would return the text from cell E7 for [if not found], but it only returns the text in cell E4.
Simplifying the formula in C4 to the following also always results in the text from cell E4 being returned for [if not found]:
Excel Formula:
=XLOOKUP(D4#, lookup_array, return_array, E4#)
I also tried this with the same result:
Excel Formula:
=XLOOKUP(D4#, lookup_array, return_array, "Not found: "&INDIRECT("E"&row()))
To troubleshoot, I tried placing
Excel Formula:
=INDIRECT("E"&row())
What can I do to return the correct data for the current row [if not found]? Thanks