Vlookup not working for matching with numbers - Is it a bug?

NTLH_Excel

New Member
Joined
Apr 4, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Dear Experts,

I currently got a strange problem with Vlookup for number matching. Here is the data sample in my file:
0.0000000​
0​
0.0000000​
0.1000000​
0.1​
0.1000000​
0.2000000​
0.2​
0.2000000​
0.3000000​
#N/A​
0.3000000​
0.4000000​
0.4​
0.4000000​
0.5000000​
0.5​
0.5000000​
0.6000000​
0.6​
0.6000000​
0.7000000​
0.7​
0.7000000​
0.8000000​
#N/A​
0.8000000​
0.9000000​
#N/A​
0.9000000​
1.0000000​
#N/A​
1.0000000​
1.1000000​
#N/A​
1.1000000​
1.2000000​
1.2​
1.2000000​
1.3000000​
1.3​
1.3000000​
1.4000000​
1.5000000​
1.6000000​
1.7000000​
1.8000000​
1.9000000​

The problem is:

+ I have numeric data at column A, started from 0 at cell A2, and I use auto fill (0.1 increase each row) function from Excel to get column A filled in with 0, 0.1, 0.2, 0.3, ....
+ At column F, I have manually entered with 0 at F2, from F3, I use formula to increase by 0.1 (i.e F3=F2+0.1, and so on)

Now, at B2, I use this formula:
=VLOOKUP(A2,$F$2:$F$21,1,FALSE)

Then drag the formula down for column B.

The strange thing happened at B5, B10, B11, B12 and B13 as it returns #N/A (while other are working fine). I already use IF condition to check for equality of A5 and F5 for example, the result is TRUE.

Could anyone explain to me why it is working like this, please? Is it a bug from Excel?

Many thanks for help.

Linh Pham.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
It's a floating point issue. In column F, round the numbers using =ROUND(F1+0.1,1) for example.
 
Upvote 0
Hi Rory,

Thank you very much for quick reply.

I can have some ways to work around with this issue. The thing I am really concerned is why it is happened like that? Could you help me on that, please? Or it is a known bug from Excel?

Thank you again for help.

Linh Pham.
 
Upvote 0
Dear Rory,

It is indeed what I am looking for.

Thank you very much and I really appreciate your help.

With best regards,

Linh Pham.
 
Upvote 0

Forum statistics

Threads
1,215,663
Messages
6,126,097
Members
449,291
Latest member
atfoley16

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top