VLOOKUP approx. value

DCM - Albert

New Member
Joined
May 4, 2009
Messages
33
I have a list of numbers, ranging from 0 to 15 for the number of years an employee has worked. The number of years is in column D.

I have a list of numbers, 1, 1.5 and 2 which represent the number of vacation days earned per month. The number of days are listed in column L.

For 0-5 years, 1 day is earned. For 6-14 years, 1.5 days are earned. For 15+ years, 2 days are earned.

___K | L
4| _0 | 1
5| _6 | 1.5
6| 16 | 2

I did a vlookup as follows: =VLOOKUP(D13,K4:L6,2,TRUE)

Now, if the number is between 0 and 15, it only shows 1 for the number of days earned. It SHOULD be finding the 1.5, for anything over 5 but it seems to just overlook that line.

Any ideas as to why?

Thanks in advance.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
What happens with a value of 16 or more, does it show 2?

If so, I would think that the value in K5 is NOT a true number...but a number stored as text...

What does this return
=ISNUMBER(K5)
 
Upvote 0
16 or more DOES in fact show 2 years correctly. Only the 5+ causes a problem.

=isnumber(K5) returns FALSE... How can I fix it?
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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