Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vlookup in Excel

Posted on 2015-01-29
5
Medium Priority
?
220 Views
Last Modified: 2015-01-29
=IFERROR(VLOOKUP(G1,'#Output'!A1:H698, 8,FALSE), "")

The link above can prevent N/A from display if vlookup can match a record. However, if it match a record with blank field, the retrieved column will be shown as 0. Is it possible to let it show blank instead of 0?

Tks
0
Comment
Question by:AXISHK
5 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 1200 total points
ID: 40577484
=IFERROR(if(VLOOKUP(G1,'#Output'!A1:H698, 8,FALSE)=0,"",VLOOKUP(G1,'#Output'!A1:H698, 8,FALSE)), "")
0
 
LVL 93

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 800 total points
ID: 40577795
If your VLOOKUP is normally returning text, and not numeric or date values, there is a simpler way:

=IFERROR(VLOOKUP(G1,'#Output'!A1:H698, 8,FALSE)&"", "")

Open in new window


The &"" appends a zero-length string to the result, thus preventing the blank from being interpreted as a numeric zero.
0
 
LVL 48

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 40578470
That's a cool trick, Patrick! I hadn't seen that before.
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 40578746
:)
0
 

Author Closing Comment

by:AXISHK
ID: 40578854
Tks
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

927 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