Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

VLookup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jaz - 18 Apr 2007 21:35 GMT
I have a report that uses VLookup to search for a match a part with a part
cost on a separate worksheet.  Some of the matches have return a value of
zero because the part has no cost.  Instead of having zeros all over my
page, is it possible to return a blank so that there is no value in the
cell?

I don't want all thoses zeros, I would rather just have a blank cell.

Thanks,
Jasper
Niek Otten - 18 Apr 2007 21:59 GMT
Hi Jasper,

=IF(YourVlookupFormula=0,"",YourVlookupFormula)

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

|I have a report that uses VLookup to search for a match a part with a part
| cost on a separate worksheet.  Some of the matches have return a value of
[quoted text clipped - 6 lines]
| Thanks,
| Jasper
T. Valko - 18 Apr 2007 22:10 GMT
Try this:

=IF(VLOOKUP(..........)=0,"",VLOOKUP(..........))

Or, you could use a setting to not display 0 values but this will apply to
the *entire worksheet*:

Tools>Options>View tab>Zero values

Another option is to use a custom format like: 0;-0;;@

Note that using the custom format and the menu option will suppress the zero
display but the cells will still contain zeros, you just won't see them.

Biff

>I have a report that uses VLookup to search for a match a part with a part
> cost on a separate worksheet.  Some of the matches have return a value of
[quoted text clipped - 6 lines]
> Thanks,
> Jasper
Peo Sjoblom - 18 Apr 2007 22:20 GMT
Niek has already provided a solution, another one would be to use a custom
format in the cell(s) with the vlookup formula

General;-General;

as an example

will not display zero

Signature

Regards,

Peo Sjoblom

>I have a report that uses VLookup to search for a match a part with a part
> cost on a separate worksheet.  Some of the matches have return a value of
[quoted text clipped - 6 lines]
> Thanks,
> Jasper
Pete_UK - 19 Apr 2007 01:05 GMT
Yet another way is to apply conditional formatting to the cells with
the VLOOKUP formula, such that if the cell contents are equal to zero
then set the foreground colour to the same as the background colour
(usually white). The cells will contain zero, but will appear blank.

Hope this helps.

Pete

> I have a report that uses VLookup to search for a match a part with a part
> cost on a separate worksheet.  Some of the matches have return a value of
[quoted text clipped - 6 lines]
> Thanks,
> Jasper
Jaz - 19 Apr 2007 16:19 GMT
THANKS ALL FOR THE RESPONSE!!

JASPER
> Yet another way is to apply conditional formatting to the cells with
> the VLOOKUP formula, such that if the cell contents are equal to zero
[quoted text clipped - 15 lines]
> > Thanks,
> > Jasper
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.