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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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