Pinterest Pixel

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

Bryan
Ever tried to use the  VLOOKUP Function but it returns a #N/A error?

Ever tried to use the  VLOOKUP Function but it returns a #N/A error?

Do not worry as it is very easy to fix this error when you combine VLOOKUP with IFERROR!

Let’s try it out on these tables!

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

I explain how you can do this below:

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel | MyExcelOnline

Download excel workbookVLOOKUP-with-iferror.xlsx

STEP 1: Let us use VLOOKUP to get the cost of the item:

=VLOOKUP(E6, $A$6:$C$8, 3, FALSE)

  • E6 will give us the value to lookup (Tablet)
  • $A$6:$C$8 will highlight the entire table of source data
  • 3 as we want the Cost which is in the third column
  • FALSE will ensure it’s an exact match

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

Apply the same formula to the rest of the cells by dragging the lower right corner downwards.

You will see there’s a #N/A value! 

That is because Lamp is not included in the source table.

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

 

STEP 2: Let us make it look better with IFERROR!

If we wrap IFERROR around the VLOOKUP formula, it will replace these invalid values with the text that we specify, “Not Found“:

=IFERROR(VLOOKUP(E6, $A$6:$C$8, 3, FALSE), “Not Found”)

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

Apply the same formula to the rest of the cells by dragging the lower right corner downwards.

And just like that, you now have clean results!

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

 

Combine VLOOKUP with IFERROR in Excel

 

 

If you like this Excel tip, please share it



How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel | MyExcelOnline


Bryan

Bryan Hong is an IT Software Developer for more than 10 years and has the following certifications: Microsoft Certified Professional Developer (MCPD): Web Developer, Microsoft Certified Technology Specialist (MCTS): Windows Applications, Microsoft Certified Systems Engineer (MCSE) and Microsoft Certified Systems Administrator (MCSA).

He is also an Amazon #1 bestselling author of 4 Microsoft Excel books and a teacher of Microsoft Excel & Office at the MyExecelOnline Academy Online Course.

See also  Excel Made Easy: How to Use COUNTIF with Multiple Criteria

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...