+ Reply to Thread
Results 1 to 5 of 5

vlookup to return blanks for errors & blank cells

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    vlookup to return blanks for errors & blank cells

    I am trying to do a vlookup to return blanks for errors & blank cells. I put together these two formulas but I can't get them to work together... I know it's like a simple punctuation that I'm missing because both of these formulas work but I'm sort of pounding my head on the wall here.

    =IF(ISERROR(VLOOKUP($C:$C,'CASPR - NSB'!$A:$BS,71,FALSE)),"",(VLOOKUP($C:$C,'CASPR - NSB'!$A:$BS,71,FALSE))),IF(ISBLANK(VLOOKUP($C:$C,' CASPR - NSB'!$A:$BS,71,FALSE)),"",(VLOOKUP($C:$C,'CASPR - NSB'!$A:$BS,71,FALSE)))

    Thank You!
    Last edited by ariesmelissa; 01-25-2010 at 03:37 AM. Reason: title

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula Help

    Hi Melissa. Welcome to the forum. Be sure to read through the Forum Rules so you can use and follow them effectively. For instance, you'll need to edit that post above and update the title to one that summarizes the problem.

    After typing out your question, a title often jumps off the page at you. For instance, from your first sentence: vlookup to return blanks for errors & blank cells

    EDIT your original post, click Go Advanced and update the title.

    I have a couple ideas, I'll think about them while you update the thread topic.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-25-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: vlookup to return blanks for errors & blank cells

    Thanks. Let me know what you come up with.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: vlookup to return blanks for errors & blank cells

    You're using Excel 2007 which has a neat little function called IFERROR(). You can wrap any existing formula into an IFERROR() trap to tell Excel what to do if the formula inside results in an error. Usage goes something like this:

    =OriginalFormula

    ...becomes

    =IFERROR(OriginalFormula, "")


    Press F1 in Excel and read up further on other examples.

  5. #5
    Registered User
    Join Date
    01-25-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: vlookup to return blanks for errors & blank cells

    Hi,
    This is what I ended up using:

    =IF(OR(ISERROR(VLOOKUP($C:$C,'CASPR - RELO'!$A:BL,64,FALSE)),ISBLANK(VLOOKUP($C:$C,'CASPR - RELO'!$A:BL,64,FALSE))),"",VLOOKUP($C:$C,'CASPR - RELO'!$A:BL,64,FALSE))


    Thanks for your help!

+ 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