SOLVED

HLOOKUP #N/A only on specific values

Copper Contributor

I have an issue here, I've linked a table on another sheet to calculate NPV Values on a sheet...but, for specific values, it doesn't work (5%, 6%, 7%, 10%, 17%, 21% and 24%)

ChabiP_0-1651279739944.png

These are the formulas:

ChabiP_2-1651280590929.png

...and this is the source data for the HLOOKUP (Sheet Name PVF2)...it goes up to column AE 

ChabiP_0-1651281860267.png

...what's weird is, when entered manually, DiscountFactor2 calculates correctly, but when done as per the formula screenshot, it gives #N/A. DiscountFactor1 & DiscountFactor2 formulas are exactly alike, except for the lookup value. I need to use this sheet to generate values for another set of functions, so trying to limit the amount of user input to the gray blocks only. Same problem occurs when I switch rows/columns on the lookup data and use VLOOKUP.

 

Please help!!!!!

2 Replies
best response confirmed by ChabiP (Copper Contributor)
Solution

@ChabiP Such things happen sometimes. When you notice that a calculated number like you have in K71 (=J71+1%) is not regarded equal to a constant, wrap the calculation in ROUND.

 

Change K71 to =ROUND(=J71+1%,2) and it will work.

@Riny_van_Eekelen you're a Godsend!!!! Thank you! it works brilliantly :)

1 best response

Accepted Solutions
best response confirmed by ChabiP (Copper Contributor)
Solution

@ChabiP Such things happen sometimes. When you notice that a calculated number like you have in K71 (=J71+1%) is not regarded equal to a constant, wrap the calculation in ROUND.

 

Change K71 to =ROUND(=J71+1%,2) and it will work.

View solution in original post