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

1. ## 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

2. ## 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>

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

use: VLOOKUP(A3,DropDownLists!A\$2:B\$7,2,FALSE)

4. ## 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. ## 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. ## Re: isblank & vlookup formula returns #n/a result and incorrect result

FALSE = Exact match
TRUE = Approximate match

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