The VLOOKUP is Not Working Between Sheets – 8 Easy Solutions

This is the Source sheet from which you will extract data.

VLOOKUP not working between sheets


Solution 1- Entering the Correct Lookup Value, the Worksheet Name, and the Column Index Number

In a new worksheet (Type), extract the names corresponding to the Student ID numbers in the Source worksheet.

typing correctly to avoid VLOOKUP not working between sheets problem

  • The name of the worksheet is misspelled: Sourc and the #N/A error is displayed.

  • Enter the following formula with the correct sheet name.
=VLOOKUP(B4,Source!$B$3:$C$13,2,FALSE)

  • Using a lookup value that does not match the values in the lookup array can also return a the #N/A error. Here, 1001, instead of 11001.

typing correctly

  • Enter the correct lookup value. This is the formula.
=VLOOKUP(11001,Source!$B$3:$D$13,2,FALSE)

If the correct column index number isn’t provided,  the #VALUE! error is displayed.
Here, column number was 2, but we 0 was the input.

value error

  • Use the following formula.
=VLOOKUP(11001,Source!$B$3:$D$13,2,FALSE)

solving the problem of VLOOKUP Not working properly


Solution 2 – Creating a Dataset with the Lookup Value in the First Column

In the Source dataset, the Name column is in the first position. If you look up any value in any other column, the VLOOKUP will not work between the sheets.

VLOOKUP is not working properly due to column serial

In the Lookup table serial datasheet, the students’ names were extracted depending on their ids.

  • Enter the following formula.
=VLOOKUP(B4,Source!B3:D13,1,FALSE)

The output is showing an error because the value in B4 is not in the first column of the Source datasheet.

  • Place Student ID in the first column, so that it contains the lookup value.

interchange columns

  • Enter the following formula.
=VLOOKUP(B4,Source!B3:D13,2,FALSE)

This is the output.


Solution 3 – Applying an Absolute Reference

The serial numbers were changed in the Student ID column.

applying absolute referencing to solve VLOOKUP not working between sheets problem

Using the formula like in the previous methods, the two last cells display errors and the reference of the main table array changed from B3:D13 to B12:D22.

error

  • Use the following formula with absolute referencing.
=VLOOKUP(B4,Source!$B$3:$D$13,2,FALSE)

You will be able to extract the correct values from the Source worksheet.


Solution 4 – Cleaning Hidden Spaces in the Lookup Values

Sometimes there are hidden spaces or characters in the lookup array which can cause VLOOKUP not to work between sheets.

Cleaning extra spaces to avoid VLOOKUP not working between sheets

  • Go to the Source sheet, add an extra column (Helper), and enter the following formula.
=TRIM(B4)

The TRIM function will clear out extra spaces in the Student ID column.

TRIM

The numbers will be formatted as text. You must change their format to number.

  • Select the range in the Helper column and press CTRL+1.

In the Format Cells dialog box:

  • Choose the Category as Number and click OK.

  • Select the range and press CTRL+C to copy.

copy

  • Choose the main column Student ID, right-click it, and select Paste Values.

  • You can delete the Helper column.

  • Enter the following formula to get the results.
=VLOOKUP(B4,Source!$B$3:$D$13,2,FALSE)

VLOOKUP not working between sheets problem solved


Solution 5 – Using a Lookup Value Greater Than the Smallest Value in the Array for an Approximate Match

A new ID: 11000 was inserted.

Maintaining lookup value limit to avoid VLOOKUP not working between sheets

After using the following formula, the #N/A error is displayed.

=VLOOKUP(B4,Source!$B$3:$D$13,2,TRUE)

  • Use the ID 11011 instead of 11000, and the error will be removed.

The VLOOKUP will work correctly between sheets and return an approximate value.


Solution 6 – Arranging Values in the Lookup Array in Ascending Order

The order of the dataset in the Source worksheet was changed into descending order.

arranging values in ascending order to avoid the issue of VLOOKUP not working between sheets

Because of the descending order, the formula returns the #N/A error.

Change the order of the dataset in the Source worksheet:

  • Go to the Home tab >> Editing >> Sort & Filter >> Sort Smallest to Largest.

sort

The dataset will be displayed in ascending order.

  • Go to the worksheet from which you want to extract data.

This is the output.


Solution 7 – Checking If Numbers are Formatted as Numbers and Not Texts

In the Source worksheet, numbers are stored as text.

VLOOKUP not working between sheets due to numbers stored as texts

  • Use the following formula to extract names.
=VLOOKUP(B4,Source!$B$3:$D$13,2,FALSE)

It will return an error.

  • Go to the Source worksheet, select the cell, click the error symbol, and choose Convert to Number.

convert to number

This is the output.

  • Go to the sheet from which you want to extract values, and enter the following formula.
=VLOOKUP(B4,Source!$B$3:$D$13,2,FALSE)

This is the output.

fixing number format solved the issue of VLOOKUP not working between sheets problem

Read More: [Solved]: Excel VLOOKUP Not Working with Numbers


Solution 8 – Adjust the Formula after Inserting or Deleting A Column

VLOOKUP not working between two sheets due to adding or deleting a column

  • Enter the following formula to get the results below.
=VLOOKUP(B4,Source!$B$3:$D$13,3,FALSE)

  • Delete the Name column in the Source worksheet.

the #REF! error will be displayed due to the change of the index column number.

REF error

  • Use the following formula.
=VLOOKUP(B4,Source!$B$3:$C$13,2,FALSE)

This is the output.


How to Fix it When the VLOOKUP Is Not Working Between Workbooks in Excel?

The main dataset is in the Source sheet of the New workbook.

VLOOKUP not working between workbooks

By entering Now instead of New (the workbook name) errors are displayed.

  • Enter the following formula with the correct name.
=VLOOKUP(B4,[New.xlsx]Source!$B$3:$D$16,3,FALSE)

This is the output.


Download Workbook


 

Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Tanjima Hossain
Tanjima Hossain

TANJIMA HOSSAIN is a marine engineer who enjoys working with Excel and VBA programming. For her, programming is a handy, time-saving tool for managing data, files, and online tasks. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. She holds a B.Sc. in Naval Architecture & Marine Engineering from BUET and is now a content developer. In this role, she creates tech-focused content centred around Excel and VBA. Apart from... Read Full Bio

2 Comments
  1. Hi

    Thanks a lot for this detailed explanation.

    However, it keeps giving #N/A also after checking everything!

    • Reply Mahfuza Anika Era
      Mahfuza Anika Era Oct 5, 2023 at 11:01 AM

      Dear Ahmad,
      Thanks for your query.
      In the VLOOKUP function #N/A error occurs when you type the wrong lookup value or worksheet name. So, check if you have given the lookup value and worksheet name properly.
      Again, VLOOKUP can only look up values to the right of the lookup value. Be careful about this.
      If you need further help, please mention details about your problem.

      Regards
      Mahfuza Anika Era
      ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo