Solved

Vlookup

Posted on 2013-06-20
4
508 Views
Last Modified: 2013-06-20
OK, quick question, should be fairly easy, but I haven't been able to figure it out.

=IFERROR(VLOOKUP(A2,E:E,1,FALSE),"")

By design if A2 is found in the column E then it outputs the information in A2. If it not found, then it outputs an empty cell.
What I need is the opposite. If the number matches, output a blank cell, else output the information in A2. I have part of it worked out.

=IFERROR(VLOOKUP(A2,E:E,1,FALSE),A2)

This will output A2 regardless. Now, how do I output a blank cell if the number is found?
0
Comment
Question by:Dixie_electric
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
Cluskitt earned 300 total points
ID: 39263141
=IF(ISERROR(VLOOKUP(A2,E:E,1,FALSE),A2,""))

EDIT: there was one ) missing
0
 

Author Comment

by:Dixie_electric
ID: 39263264
=IF(ISERROR(VLOOKUP(A2,E:E,1,FALSE),A2,""))

Close. Close enough I'll take it.

=IF(ISERROR(VLOOKUP(A2,E:E,1,FALSE)),A2,"")

is what worked. ) was in the wrong place
0
 
LVL 80

Expert Comment

by:byundt
ID: 39263284
I'm pretty sure Cluskitt meant to post:
=IF(ISERROR(VLOOKUP(A2,E:E,1,FALSE)),A2,"")

It could also be:
=IF(ISNA(MATCH(A2,E:E,0)),A2,"")
0
 
LVL 18

Expert Comment

by:Cluskitt
ID: 39263293
Yes, sorry, I got confused by the )
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VBA code to clear all filter and select 1 48
VB loop to open the file from the network drive 30 67
Excel 3 24
Macro 3 21
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now