Solved

vlookup in Excel

Posted on 2015-01-29
5
193 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 300 total points
ID: 40577484
=IFERROR(if(VLOOKUP(G1,'#Output'!A1:H698, 8,FALSE)=0,"",VLOOKUP(G1,'#Output'!A1:H698, 8,FALSE)), "")
0
 
LVL 92

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 200 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 47

Expert Comment

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

Expert Comment

by:Patrick Matthews
ID: 40578746
:)
0
 

Author Closing Comment

by:AXISHK
ID: 40578854
Tks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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…

749 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