+ Reply to Thread
Results 1 to 3 of 3

[SOLVED] An Error return other than #N/A with VLOOKUP

  1. #1
    Gazivaldo
    Guest

    [SOLVED] An Error return other than #N/A with VLOOKUP

    I'm using VLOOKUP to search for an exact match of a cell but when it can't
    find a match it returns #N/A. Now, I KNOW, that there sometimes won't be a
    match but rather than returning #N/A is it possible for Excel to return a
    blank, or better still a shaded cell??

  2. #2
    Anne Troy
    Guest

    Re: An Error return other than #N/A with VLOOKUP

    =if(isna(vlookup(...)),"",vlookup(...))
    Then use conditional formatting that if the cells is equal to "", it's
    shaded.
    (Formulas can't change cell color)
    ************
    Anne Troy
    VBA Project Manager
    www.OfficeArticles.com

    "Gazivaldo" <[email protected]> wrote in message
    news:[email protected]...
    > I'm using VLOOKUP to search for an exact match of a cell but when it can't
    > find a match it returns #N/A. Now, I KNOW, that there sometimes won't be
    > a
    > match but rather than returning #N/A is it possible for Excel to return a
    > blank, or better still a shaded cell??




  3. #3
    Gazivaldo
    Guest

    Re: An Error return other than #N/A with VLOOKUP

    Thanks Anne. I've applied your formula and now I'm receiving a blank cell
    which is great. However, for some reason the conditional formatting isn't
    working. I've done exactly as you've suggested but it doesn't format any of
    the blank cells. Any ideas??

    "Anne Troy" wrote:

    > =if(isna(vlookup(...)),"",vlookup(...))
    > Then use conditional formatting that if the cells is equal to "", it's
    > shaded.
    > (Formulas can't change cell color)
    > ************
    > Anne Troy
    > VBA Project Manager
    > www.OfficeArticles.com
    >
    > "Gazivaldo" <[email protected]> wrote in message
    > news:[email protected]...
    > > I'm using VLOOKUP to search for an exact match of a cell but when it can't
    > > find a match it returns #N/A. Now, I KNOW, that there sometimes won't be
    > > a
    > > match but rather than returning #N/A is it possible for Excel to return a
    > > blank, or better still a shaded cell??

    >
    >
    >


+ 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