IFERROR VLOOKUP - remove #n/a when blank

jillianleigh

New Member
Joined
Jan 25, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have this formula I'm using to lookup style numbers from a table on another sheet (called Items) and input the description.

My original formula was "=IF(F3="","",VLOOKUP(F3,Items!A:D,2,FALSE))"

This worked great in that it removed the #N/A message if the cell was left blank and it looked up the items and inputted the item description.
The problem was that on style numbers that were only numbers (not letters) - it would result in a error. It messed up thinking when numbers were in number format.

So I used this formula to fix that issue:
=IFERROR(VLOOKUP(F3,Items!A:D,2,FALSE),VLOOKUP(TEXT(F3,0),Items!A:D,2,FALSE))
If an error happens, it converts the number to text so that the lookup function will find it. It works!

However - I don't know how to put back the function for it to not display #N/A when the cell is blank. It keeps saying there's two many arguments. Help!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi,

Wouldn't it be:

Excel Formula:
=IF(F3="","",IFERROR(VLOOKUP(F3,Items!A:D,2,FALSE),VLOOKUP(TEXT(F3,0),Items!A:D,2,FALSE)))
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top