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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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