Share via

=XLOOKUP(Customer,Summary_Aging[Customer '#],Summary_Aging[Telephone])

LaQuintin Holloway 0 Reputation points
2025-10-20T14:55:56.39+00:00

=XLOOKUP(Customer,Summary_Aging[Customer '#],Summary_Aging[Telephone]) how can I fix this in excel, every time I type in an account number I get this error #N/A error

Microsoft 365 and Office | Excel | Other | Android

2 answers

Sort by: Most helpful
  1. Thomas4-N 16,050 Reputation points Microsoft External Staff Moderator
    2025-10-21T02:18:23.81+00:00

    Hello LaQuintin Holloway, welcome to Microsoft Q&A forum.

    Your formula is structured correctly, but the #N/A error means Excel cannot find an exact match for the value you entered. To give you the most accurate help, could you share a screenshot of your data or upload a sample file?

    In the meantime, here are some common causes you can check:


    1. Data type mismatch

    If the Customer value is stored as text and the Customer '# column is numeric (or vice versa), Excel will not match them and will return #N/A. This often happens when a number like 101 is mistyped or imported as text.

    What to do:

    • Check the format of the cell where you enter Customer and the Customer '# column in your table. Both should be Number if account numbers are numeric.
    • If you find text values, convert them to numbers. You can just change the format to Number and re-enter the value or force conversion in the formula:

    =XLOOKUP(VALUE(Customer), Summary_Aging[Customer '#], Summary_Aging[Telephone], "Not Found")

    see: Convert numbers stored as text to numbers in Excel


    2. Value not found

    If the account number does not exist in the Customer '# column, #N/A is expected. You can add a fallback argument (the fourth argument in XLOOKUP) so it returns a message instead of #N/A:

    =XLOOKUP(Customer, Summary_Aging[Customer '#], Summary_Aging[Telephone], "Not Found")


    Other things to check include extra spaces or hidden characters.

    Please share the screenshot or file so we can confirm the exact cause and provide a precise solution. Until then, these quick checks should help you troubleshoot most cases.

    Warm regards,


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    Was this answer helpful?


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.