ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Formula > VLOOKUP REF Error – Causes and Solutions

VLOOKUP REF Error – Causes and Solutions

VLOOKUP REF Error - Causes and Solutions
Table of contents :
  • VLOOKUP REF Error because one or more table_array column is deleted
  • VLOOKUP REF Error because the col_index_num value is greater than the number of columns in table_array
  • Be careful when deleting the table_array columns

VLOOKUP REF Error

VLOOKUP REF Error because one or more table_array column is deleted

Deleting table_array column causes VLOOKUP REF error when the col_index_num value becomes greater than the number of columns in table_array. This error occurs when VLOOKUP formula has already written; then someone deletes one or more column in table_array.

For example, there is data as shown below.

VLOOKUP REF Error

The VLOOKUP function is used to find the prices on the bill with the col_index_num value is 2 (price for tall size). When will the VLOOKUP REF error occur?

VLOOKUP REF Error

No REF error when venti price deleted. The number of table_array columns changes from 4 columns to 3 columns, still greater than the col_index_num value.

Pay attention to the price on the bill, still showing the price for the tall size.

VLOOKUP REF Error

No error too when Grande price deleted. The number of table_array columns changes to 2 columns, equal to the col_index_num value. Prices on the bill keep showing prices for a tall size.

VLOOKUP REF Error

VLOOKUP REF error occurs when the number of table_array columns only leaves 1 column, less then col_index_num value.

VLOOKUP REF Error because the col_index_num value is greater than the number of columns in table_array

This error occurred not because the table_array column was deleted. This error appears more often when writing the VLOOKUP function for the first time. If the col_index_num value is greater than the number of table_array columns, VLOOKUP REF error immediately appeared.

Look at the image below. The VLOOKUP function in cell H4 returns a #REF! error, because the col_index_num value is 5, greater than the number of table_array columns (4 columns).

VLOOKUP REF Error

The solution is easy. Use a col_index_num value less than or equal to the number of table_array columns

Be careful when deleting the table_array columns

When deleting a table_array column in the example above, the prices on the bill does not change, keep showing the price for the tall size. What if the first deleted column is for the tall price column?

Did an error occur?

VLOOKUP REF Error

There was no error because the col_index_num value is still smaller than the number of table_array columns.

But, look at the prices on the bill — all prices changes, showing the prices for a grande size. Prices change automatically is a dangerous condition, no error message but the billing prices changes.

The Solution

Use VLOOKUP MATCH Formula to avoid REF error, and automatically change for VLOOKUP return values when someone deletes one or more table_array columns.

Read the article below for a detailed explanation.

  • VLOOKUP MATCH – Solution for VLOOKUP REF Error

There are many possible errors when using the VLOOKUP function. For errors other than REF error please read the following article:

  • VLOOKUP Error – Frequently Error and Solutions

Related Function

Function used in this article
  • Excel VLOOKUP Function
  • Excel MATCH Function
Usefull links
  • How to Correct #REF Errors
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

How to Create a Formula in Excel
How to Create a Simple Formula in Excel To create …

How to Create a Formula in Excel

How to Separate Date and Time in Excel
The date and time value can be written in one …

How to Separate Date and Time in Excel

How to Subtract in Excel
Subtraction Formula Using the Minus Sign “-“ The symbol used …

How to Subtract in Excel

How to Add and Subtract Percentage in Excel
Add Percentage in Excel What is the price of each …

How to Add/Subtract Percentage in Excel

SUMPRODUCT IF
There is no SUMPRODUCTIF function in excel, but you can …

SUMPRODUCT IF – Multiple Criteria SUMPRODUCT

Tags:Error REF Excel How to Fix REF Error in Excel REF Error Excel REF Error in Excel REF Excel Error How to Fix It

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh