Share via

I'm receiving "N/A" in excel when the matching factor is clearly there. Why could this be? I copied and pasted values in both worksheets.??

Vbugsley 0 Reputation points
2025-11-12T21:38:56.1566667+00:00

I have a pivot table from power query with amended queries for each of the 11 months to date for invoices received. I pivoted down to the plan type followed by employee name for the rows of data and the amount of the related deduction as the data. I copy and pasted as values in another sheet. I also have a report from payroll for every pay period on every employee that I pivoted down to the same setup. And copied and pasted as values here as well. I'm attempting to Vlookup one list (invoiced data) to the other (deductions to date for the benefit). I've attempted both a Vlookup and an Xlookup and they are not working. I know it is something simple I missed but can't figure it out?!! Please provide the embarrassing thing I missed doing to get this to work?? I can't upload the data due to the sensitive nature of the information.

Microsoft 365 and Office | Excel | For business | Windows

3 answers

Sort by: Most helpful
  1. Vbugsley 0 Reputation points
    2025-11-12T23:56:31.26+00:00

    I got it to work by reprocessing. Just a bug in the data somewhere. Thanks!

    Was this answer helpful?


  2. Hendrix-C 15,905 Reputation points Microsoft External Staff Moderator
    2025-11-12T22:02:30.9766667+00:00

    Hi @Vbugsley,

    Thank you for posting your question in the Microsoft Q&A forum.

    According to your concern, since the XLOOKUP also returns N/A, there is high possibility this issue happened due to one of these two problems: data errors and wrong range references. Please follow this guideline to narrow down which did cause Excel to return #N/A when looking up data:

    1- Use Match formula for a quick test

    • Try using the formula =MATCH(lookup_value, lookup_array, 0)
    • If MATCH also returns N/A, the issue is with the data

    2- Mismatch in data formatting

    • Although you have pasted the data as values, you can still try using =ISTEXT() or =ISNUMBER() on both lookup value and value column to make sure they are in the same formatting.

    3- Extra space or hidden characters

    • Try using =TRIM() or =CLEAN() to clean the data so we can prevent extra spaces when inputting value causing mismatches

    4- Lookup value not in first column

    • VLOOKUP only search in the first column for lookup range. If your account is in column B but your range starts from column A, it won't find it properly. Therefore, double-check again the ranges that are used in the formula.
    • Also, make sure you are using exact match by setting the fourth argument to FALSE/0.

    I hope the information provided proves useful. Please proceed with the outlined steps and let me know whether they resolve the issue. If you have any questions or need further assistance, please feel free to share them in the comments, I'll be glad to continue working with you to find a solution.

    Thank you for your patience and understanding throughout this process. Should you have any questions or need further assistance, feel free to reach out at any time.

    I look forward to hearing from you.


    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?

    0 comments No comments

  3. Q&A Assist
    2025-11-12T21:39:44.99+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    When you receive an "N/A" error in Excel while using VLOOKUP or XLOOKUP, it typically indicates that the lookup value is not found in the specified range. Here are some common reasons why this might happen, especially in your case:

    1. Data Formatting Issues: Ensure that the data types of the lookup values in both sheets are the same. For example, if one is formatted as text and the other as a number, Excel will not find a match. You can check this by selecting the cells and looking at the format in the toolbar.
    2. Leading or Trailing Spaces: Sometimes, copied data may have extra spaces. Use the TRIM function to remove any leading or trailing spaces from your data.
    3. Exact Match Requirement: If you are using VLOOKUP with range_lookup set to FALSE, it requires an exact match. Make sure the values you are looking up are identical in both sheets.
    4. Hidden Characters: There might be non-visible characters in your data. You can use the CLEAN function to remove any non-printable characters.
    5. Incorrect Range: Double-check that the range you are using in your VLOOKUP or XLOOKUP is correct and includes all the necessary rows and columns.
    6. Case Sensitivity: While VLOOKUP is not case-sensitive, if you are using other functions or methods, ensure that the case matches if that is a requirement.
    7. Pivot Table Issues: If the data comes from a pivot table, ensure that the pivot table is refreshed and that the data is correctly displayed before copying it to another sheet.

    By addressing these potential issues, you should be able to resolve the "N/A" error in your lookup functions.


    References:

    Was this answer helpful?

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.