VLOOKUP - Skip if blank

kingn8link

New Member
Joined
Nov 30, 2017
Messages
2
Having trouble figuring this out, and I'm new to this. In fact, this is my first foray into the world of Excel.


=IFERROR(VLOOKUP(A2,$E:$F,2,FALSE),A2)


Using this formula in column B, I want to return the data from column F based on the info entered in A. Additionally, if A returns an error, then I am duplicating the value of A into B.

However, I also want the formula to ignore Blank cells in A. So B should only contain returned values, or duplicate values from A. Currently, it displays a 0 when no data is entered into A when it needs to be blank.

I'm wondering if the formula needs to be nested within another formula, or if I'm approaching this the wrong way.

Any help is appreciated!
 

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.
Welcome to the Board!

Try this:
Code:
[COLOR=#333333]=IF(A2="","",IFERROR(VLOOKUP(A2,$E:$F,2,FALSE),A2))[/COLOR]
 
Upvote 0
Not sure exactly what you want, but, if there is a match for the value in A2 somewhere in column E, the formula should return the value from that same row in column F (row of the first instance of an exact match of the value in A2). If there is no match,the VLOOKUP formula will return and error, which will be replaced by the value in A2.

Ken
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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