+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP formula gives me an error if the source cell is empty

  1. #1
    Registered User
    Join Date
    08-06-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    3

    VLOOKUP formula gives me an error if the source cell is empty

    I am making a spreadsheet to do lighting audits....in column A, I have a drop down list of different light fixtures.....select a specific light and the other columns populate according to the vlookup reference, i.e. cost, watts, etc.
    I have about 15 rows for listing the lighting and its corresponding specs. If there is nothing selected in Column A (row 12), the values in Columns B,C,D are all giving me the #N/A error. I want Columns B,C,D to be blank unless I select a lighting fixture in Column A.

    Thanks for any help.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: VLOOKUP formula gives me an error if the source cell is empty

    Use IFERROR.

    Eg, this is not specific to your formula but an example of IFERROR used,

    =IFERROR(VLOOKUP(B1,C1:D13,2,FALSE),"")
    If you can't work this into your formula, post it up.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: VLOOKUP formula gives me an error if the source cell is empty

    Or

    =IF($A12="","",your VLOOKUP())

  4. #4
    Registered User
    Join Date
    08-06-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VLOOKUP formula gives me an error if the source cell is empty

    Figured it out!! THANK YOU!!

    I had to change the formatting to text or number where appropriate - I kept getting errors, but got through it thanks to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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