+ Reply to Thread
Results 1 to 5 of 5

Vlookup Problem with Null Value

Hybrid View

  1. #1
    Registered User
    Join Date
    07-21-2014
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    55

    Vlookup Problem with Null Value

    Hi...here is what I am trying to do. I have a spreadsheet and in cells B1 thru B10, I have vlookup formulas [=vlookup(A1;CE8:CF41:2)], which the value (cell A1) changes to correlate to cells A1:A10. The results from these vlookups are then summed in cell C1[=sum(B1:B10)]. My problem is that there isn't always data in cells A1:A10 (these are links from another spreadsheet). And when I am missing data in these value cells, I get a result of #N/A which messes up the whole function all the way to cell C1. When I have data in these cells, everything works as planned. My question is, is there a way to write this vlookup so that if the value ("A1") is null, I simply get a null value/ empty cells instead of an error message?

  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: Vlookup Problem with Null Value

    Try something like this...

    =IFERROR(VLOOKUP(.....),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup Problem with Null Value

    Like this

    =IFERROR(VLOOKUP(A1;CE8:CF41;2,0);0)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    07-21-2014
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    55

    Re: Vlookup Problem with Null Value

    Both work well. Thank you so much for the help and have a wonderful night!

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

    Re: Vlookup Problem with Null Value

    You're welcome. Thanks for the feedback!

+ 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] NULL (blank) problem
    By amt7565 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-08-2014, 09:06 AM
  2. if null, then formula problem
    By hrclark in forum Excel General
    Replies: 4
    Last Post: 10-17-2011, 11:29 AM
  3. VLookup Null values
    By Babylooch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2006, 08:35 PM
  4. IF IS NULL PROBLEM
    By Teri in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2005, 05:06 PM
  5. [SOLVED] IIF IS NULL Problem
    By scott in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-03-2005, 10:06 PM

Tags for this Thread

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