+ Reply to Thread
Results 1 to 2 of 2

Vlookup

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    Omaha
    MS-Off Ver
    Excel 2007
    Posts
    11

    Vlookup

    I am having the following two errors in vlookup in excel 2007 using lookup statements that look like the
    following: =VLOOKUP($E2,'Contacts Master'!$D$1:$H$3000,5,0)

    1. The first problem is I am tyring to display a phone number extension. This works fine with there is a phone number extension. If there is no phone number extension, the column displays 0. Is there any way for the column to display a blank (nothing in the column)? If so, how do you accomplish this goal in excel 2007?

    2. The next problem is I get #N/A in the columns where there is no match in the lookup table. Thus is there a way to leave the appriopriate cells as blank with nothing in them? If so, how do you accomplish this goal?
    Last edited by jazzgirl; 02-15-2012 at 01:41 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup

    Try this formula:

    =IFERROR(VLOOKUP($E2,'Contacts Master'!$D$1:$H$3000,5,0),"")

    and then format the cells as Custom from the Number tab, and enter Type: 0;-0;;@
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1