Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (2024)

Dataset Overview

Consider the List of Employees and Departmentsdataset shown in cells B4:D14. This dataset includes employee IDs, their Names, and the Departments where they work. Now, let’s explore each problem and its solution with relevant illustrations.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (1)

Solution 1 – Checking If the Lookup Value Exists

One common cause of the VLOOKUP #N/A error in Excel is when the lookup value isn’t present in the lookup array. In such cases, the function returns an #N/A error.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (2)

To resolve this, simply correct the value to get the desired results.

Steps:

  • Enter the correct ID number in cell C18.
  • Insert the following formula:

=VLOOKUP(C18,$B$5:$D$14,2,FALSE)

Here, C18 represents the ID number 1002.

Formula Breakdown:

  • VLOOKUP(C18,$B$5:$D$14,2,FALSE) →searches for a value in the left-most column of the table array ($B$5:$D$14) and returns a value from the specified column in the same row. In this case, it matches C18 (the lookup value) from the array and retrieves the corresponding name (column 2). The FALSE argument ensures an exact match.

Output → Hans

Note: Remember to use absolute cell references by pressing the F4 key on your keyboard.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (3)

Read More: Why VLOOKUP Returns #N/A When Match Exists

Solution 2 – Correcting Mistyped Lookup Value

Another common error that frustrates users is a simple typo in the lookup value, resulting in the #N/A error. In the image below, the name “Milly” has been misspelled as “Milli.”

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (4)

Thankfully, the fix is straightforward. Follow these steps:

Steps:

  • Enter the Correct Name:
    • Enter the correct name in cell C18.
    • Insert the following formula in cell D18:

=VLOOKUP(C18,$C$5:$D$14,2,FALSE)

For example, if the C18 cell contains the name “Milly,” this formula will return the corresponding department.

Formula Breakdown:

  • VLOOKUP(C18,$C$5:$D$14,2,FALSE) →searches for the lookup value (C18) in the table array ($C$5:$D$14) and retrieves the value from the second column. TheFALSEargument ensures an exact match.

Output → Operations

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (5)

Read More: [Fixed!] Excel VLOOKUP Not Returning Correct Value

Solution 3 – Referencing the Leftmost Column

Keep in mind that the VLOOKUP function cannot retrieve data from its left side. The lookup column must be the leftmost column; otherwise, the function returns the #N/A error.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (6)

Steps:

  • To address this, navigate to cell D18 and enter the following formula in the Formula Bar:

=VLOOKUP(C18,$C$5:$D$14,2,FALSE)

This should display the correct result, which is the Operations department.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (7)

Alternative Approach: INDEX and MATCH Functions:

  • If you want to avoid worrying about the lookup column position, consider using the INDEX and MATCH functions.
  • Enter the following formula in cell D18:

=INDEX(D5:D14,MATCH(C19,C5:C14,0))

Here, the C19 cell points to the name “Milly.”

Formula Breakdown:

  • MATCH(C19, C5:C14, 0):
    • The MATCH function returns the relative position of an item in an array that matches the given value.
    • In this case:
      • C19 is the lookup value, referring to the name “Milly.”
      • C5:C14 represents the lookup array where the value is searched.
      • The 0 argument indicates an exact match.
    • Output:5
  • INDEX(D5:D14, MATCH(C19, C5:C14, 0)):
    • The INDEX function retrieves a value at the intersection of a row and column in a given range.
    • Here:
      • D5:D14 is the array argument, representing the marks scored by the students.
      • 5is the row_num argument, indicating the row location (which corresponds to the department).
    • Output:Operations

Remember to use absolute cell references by pressing the F4 key on your keyboard.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (8)

Solution 4 – Entering the Correct Data Formatting

The VLOOKUP #N/A error often occurs due to modified formatting of the lookup value during import or by mistake. Specifically, a leading apostrophe can cause the data to be interpreted as text, as shown in the screenshot below.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (9)

To address this issue, follow these steps:

Steps:

  • Remove the Apostrophe:
    • Go to cell C18.
    • Press the F2 key to enter Edit mode.
    • Remove any leading apostrophe or extra formatting.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (10)

  • Calculate the Correct Output:
    • In cell D18, enter the following formula:

=VLOOKUP(C18,$B$5:$D$14,2,FALSE)

  • For example, if the C18 cell contains the ID number 1004, this formula will return the corresponding name (e.g., Jules).

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (11)

Solution 5 – Removing Extra Space

The VLOOKUP formula may not work correctly if the lookup value contains extra spaces. To resolve this, we’ll use the TRIM function to eliminate any additional spaces within the lookup value.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (12)

Steps:

  • Remove Spaces:
    • Enter the D18 cell.
    • Type the following formula:

=VLOOKUP(TRIM(C18),$C$5:$D$14,2,FALSE)

  • The TRIM function removes all but single spaces from the text in the C18 cell (e.g., “Milly “).

Formula Breakdown:

  • TRIM(C18) removes excess spaces after the text.
  • The modified formula becomes:

VLOOKUP(“Milly”,$C$5:$D$14,2,FALSE)

Here, “Milly” (lookup_value argument) is matched from the table array ($C$5:$D$14). The 2 (col_index_num argument) represents the column number of the lookup value, and FALSE ensures an exact match.

Output → Operations

Remember to use absolute cell references by pressing the F4 key on your keyboard.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (13)

Solution 6 – Using Absolute Cell Reference for the Table Array

Another potential cause of the VLOOKUP #N/A Error is neglecting to use Absolute Cell References for the table array. When you copy the formula using the Fill Handle tool, it shifts the cells of the lookup array. Consequently, the function may fail to match the lookup value within the given array.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (14)

Follow these steps to address this issue:

Steps:

  • Apply Absolute Cell Reference:
    • Go to cell D18.
    • Enter the following formula:

=VLOOKUP(C19,$C$5:$D$14,2,FALSE)

For example, if the C19 cell contains the name Roman, this formula will return the corresponding department.

Note: Press the F4 key on your keyboard to lock in the $C$5:$D$14 cell references.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (15)

  • Final Thoughts:
    • While we strive for perfection, our world isn’t flawless. The methods mentioned above are all potential fixes for the VLOOKUP #N/A Error.
    • If the problem persists, consider reaching out to Microsoft Support. They have Excel experts who can provide tailored solutions for your specific issues.

Specifying Appropriate Match Method in VLOOKUP Formula

Additionally, specifying the wrong match method in the VLOOKUP function can lead to incorrect output even if the data exists. Specifically, using the TRUE argument results in an approximate match condition, which matches the nearest value and may return an erroneous result.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (16)

In the following section, we’ll discuss how to troubleshoot this issue:

Steps:

  • Exact Match Criteria:
    • Go to the D18 cell.
    • Enter the following equation:

=VLOOKUP(C18,$B$5:$D$14,2,FALSE)

  • Here, the FALSE argument ensures an exact match in the VLOOKUP function.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (17)

What to Do If VLOOKUP Function Is Not Returning Correct Value

You may need to verify whether Excel’s Calculation Options are set to Manual, as this setting can cause the VLOOKUP function to produce the same result when copied into cells below. Typically, this feature is designed to prevent unnecessary calculations and thereby avoid slowing down the computer. However, not reverting to the default Automatic option can lead to issues, as illustrated in the screenshot below.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (18)

Steps:

  • Go to the Formulas tab and click on the Calculation Options drop-down menu.
  • Ensure that the Automatic option is selected.
  • You should see the correct output, as depicted in the image below.

Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (19)

Download Practice Workbook

You can download the practice workbook from here:

Fixed VLOOKUP #N/A Error.xlsx

Related Articles

  • [Fixed] Excel VLOOKUP Returning 0 Instead of Expected Value
  • [Fixed!]: VLOOKUP Function Is Returning Same Value in Excel
  • Excel VLOOKUP Returning Column Header Instead of Value
  • VLOOKUP Is Returning Just Formula Not Value in Excel

<< Go Back to Issues with VLOOKUP | Excel VLOOKUP Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Excel VLOOKUP Returning #N/A Error (6 Solutions) - ExcelDemy (2024)
Top Articles
The people most wanted by police in Wales right now
Sam Bankman-Fried, el 'rey de las criptomonedas', no actuó solo: dos de sus socios se declaran culpables del fraude de FTX
SZA: Weinen und töten und alles dazwischen
Cappacuolo Pronunciation
Wizard Build Season 28
Www.politicser.com Pepperboy News
Ventura Craigs List
What's Wrong with the Chevrolet Tahoe?
Mylife Cvs Login
Canelo Vs Ryder Directv
When Is the Best Time To Buy an RV?
Bme Flowchart Psu
Why Is Stemtox So Expensive
ATV Blue Book - Values & Used Prices
سریال رویای شیرین جوانی قسمت 338
Craigslist Farm And Garden Cincinnati Ohio
Operation Cleanup Schedule Fresno Ca
Gayla Glenn Harris County Texas Update
Huntersville Town Billboards
X-Chromosom: Aufbau und Funktion
Selfservice Bright Lending
Today Was A Good Day With Lyrics
Air Traffic Control Coolmathgames
Chamberlain College of Nursing | Tuition & Acceptance Rates 2024
Craigslist Dubuque Iowa Pets
Bra Size Calculator & Conversion Chart: Measure Bust & Convert Sizes
Ocala Craigslist Com
Pay Stub Portal
417-990-0201
Have you seen this child? Caroline Victoria Teague
Shiftwizard Login Johnston
Serenity Of Lathrop - Manteca Photos
Indiana Wesleyan Transcripts
Solemn Behavior Antonym
Sinai Sdn 2023
7543460065
Www Craigslist Com Brooklyn
One Main Branch Locator
Dee Dee Blanchard Crime Scene Photos
Thelemagick Library - The New Comment to Liber AL vel Legis
Stewartville Star Obituaries
Payrollservers.us Webclock
Craigslist Woodward
The Horn Of Plenty Figgerits
Lyons Hr Prism Login
Kidcheck Login
Dmv Kiosk Bakersfield
Hkx File Compatibility Check Skyrim/Sse
Worlds Hardest Game Tyrone
Obituaries in Westchester, NY | The Journal News
Cbs Scores Mlb
Texas Lottery Daily 4 Winning Numbers
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 6267

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.