+ Reply to Thread
Results 1 to 5 of 5

Adding "if blank" statement to an existing VLOOKUP formula

Hybrid View

  1. #1
    Registered User
    Join Date
    01-27-2012
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Adding "if blank" statement to an existing VLOOKUP formula

    I am currently using this VLOOKUP:

    =VLOOKUP(A11:A92,'H:\[file name]Sheet1'!$A$90:$B$92,2,FALSE)

    this works perfectly, however, I would like to be able to drag the formula down a large column.

    When I do, the cells with data in them return the correct numbers, while the cells without a lookup value return N/A.
    Then I have to go through the column and delete the N/A's and change them to zeros.

    How can I have it return a 0 if there is no value?
    Is it 'if blank' ? How do I work that into my formula?

    Can I have it return nothing?

    Thank you!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Adding "if blank" statement to an existing VLOOKUP formula

    =IF(A11="",0,VLOOKUP(A11,'H:\[file name]Sheet1'!$A$90:$B$92,2,FALSE))
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-27-2012
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Adding "if blank" statement to an existing VLOOKUP formula

    I tried that and it still returned N/A

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Adding "if blank" statement to an existing VLOOKUP formula

    Maybe you should post a workbook. That lookup table looks strange, it's only 3 rows by 2 columns.

  5. #5
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Adding "if blank" statement to an existing VLOOKUP formula

    This may work for you

    =IF(ISNA(VLOOKUP(A11,'H:\[file name]sheet1!$A$90:$B$92,2,FALSE)=TRUE),"",VLOOKUP(A11,'H:\[file name]sheet1!$A$90:$B$92,2,FALSE))
    Last edited by grizzly6969; 01-27-2012 at 11:31 PM.

+ 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