+ Reply to Thread
Results 1 to 6 of 6

isblank & vlookup formula returns #n/a result and incorrect result

  1. #1
    Registered User
    Join Date
    05-06-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    3

    isblank & vlookup formula returns #n/a result and incorrect result

    I am building a spreadsheet to autopopulate cells if certain criteria is filled in. Using this formula works for 2 years through 5 years, but produces a #n/a result for the 1 year and outputs an incorrect result for 6 months. I've tried using the 'isblank' and 'istext' formulas. Any help would be greatly appreciated.

    =IF(ISBLANK(C3),"",VLOOKUP(A3,DropDownLists!A$2:B$7,2)+C3)

    Term Term / End Date Lookup Calculation
    6 months 183
    1 year 365
    2 years 730
    3 years 1095
    4 years 1460
    5 years 1825
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: isblank & vlookup formula returns #n/a result and incorrect result

    Hi,

    welcome to the forum.

    D3 is 9 - Jul - 13, which has the formula you have shown... which is correct.
    What result you are expecting ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: isblank & vlookup formula returns #n/a result and incorrect result

    use: VLOOKUP(A3,DropDownLists!A$2:B$7,2,FALSE)
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  4. #4
    Registered User
    Join Date
    05-06-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: isblank & vlookup formula returns #n/a result and incorrect result

    Thank you. D3 result is 08-Jul-16. I'm attempting to attach a pic - hope it comes through. Result should be 6 months from July 10, 2011 -> Jan 09, 2012. Which would then result in Contract Status to show as Expired.

    6MonthResult.PNG

  5. #5
    Registered User
    Join Date
    05-06-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: isblank & vlookup formula returns #n/a result and incorrect result

    Yes that worked! I had tried using False at some point but removed it - although I can't remember why now. What exactly does the 'False' do?

  6. #6
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: isblank & vlookup formula returns #n/a result and incorrect result

    FALSE = Exact match
    TRUE = Approximate match

+ 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