+ Reply to Thread
Results 1 to 3 of 3

IF VLOOKUP Issue

  1. #1
    Registered User
    Join Date
    01-13-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    57

    IF VLOOKUP Issue

    Hi Everyone

    I have a formula which works fine in one spreadsheet but isn't working in another

    =IF(D8="",A8,VLOOKUP(D8,G_FACTS,4,FALSE))

    The formula works if there is a value within the VLOOKUP table however if D8 is blank it is not returning A8 as the value and instead I get #NA

    Any ideas what I've done wrong on this occasion?

    Thanks

    Dan

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF VLOOKUP Issue

    Then that means D8 is not blank.

    What results do you get with these formulas:

    =LEN(D8)
    =CODE(D8)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,521

    Re: IF VLOOKUP Issue

    Logically, D8 is not blank. Does it have a formula in it? Is it text? Could it have one or more spaces in it rather than being blank?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] having a vlookup issue
    By komet12 in forum Excel General
    Replies: 3
    Last Post: 06-04-2012, 09:21 AM
  2. [SOLVED] VLOOKUP issue
    By berger01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2011, 10:59 AM
  3. VLOOKUP Issue
    By Zander in forum Excel General
    Replies: 3
    Last Post: 03-18-2009, 05:50 PM
  4. Vlookup Issue
    By babypink in forum Excel General
    Replies: 7
    Last Post: 10-16-2007, 08:20 AM
  5. VLOOKUP Issue
    By Rocco2526 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-26-2006, 04:20 PM

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