Share via

Having difficulty using XLOOKUP on a Mac

Anonymous
2024-11-15T20:56:08+00:00

I have a two column list of text values, one for lookup array and one for return array.

If the lookup value is found in the lookup array, the value in the return array is returned, but if not found, it returns a 0, not the value ("not found") that I placed in the function. Sometimes it doesn't return 0 but instead shows the =XLOOKUP....formula.

Am I missing something?

Microsoft 365 and Office | Excel | For home | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2024-11-16T20:45:33+00:00

Make sure that the cell with the modified formula is not formatted as Text but as General. Then edit and confirm.

This is what I see:

The formulas in B2:B9 return "not found" because 8574969388000 and 8584061446000 do not occur in column A on he MBPOwned sheet:

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-11-16T19:11:10+00:00

    I have created a "stripped down" version of the file.

    https://1drv.ms/x/s!AtqkRymf79Clo1O3EcgoFGr4msRK?e=dHgrWp

    Advise me if you have trouble accessing.

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2024-11-16T16:07:01+00:00

    If you wish, you can create a stripped-down copy of the workbook demonstrating the problem (without sensitive information) and make it available through one of the websites that let you upload and share a file, such as OneDrive, Google Drive, FileDropper or DropBox. Then post a link to the uploaded and shared file here.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-11-16T15:01:31+00:00

    Double checked my data.

    The value that I was looking up does not exist in my lookup and return array, so it should not be returning 0.

    I think I have more serious issues with my current installation of Excel for Mac, and will reach out to MS Support.

    Thanks for your consideration.

    Regards.

    JP

    Was this answer helpful?

    0 comments No comments
  4. HansV 462.6K Reputation points
    2024-11-15T21:23:33+00:00

    If the formula is displayed in the cell, that cell might be formatted as Text.

    A return value of 0 indicates that XLOOKUP did find a match in lookup_array, but the corresponding value in return_array was blank.

    You might try

    =XLOOKUP(...)&""

    or

    =LET(s, XLOOKUP(...), IF(s="", "not found", s))

    Was this answer helpful?

    0 comments No comments