#1   Report Post  
ynissel
 
Posts: n/a
Default Vlookup Help

I cant figure out what I am doing wrong.
Why wont my lookup bring me back 2.7 ?
This is what Im getting:

If I do =VLOOKUP(a6*100,a1:b4,2) = 2.5
or if I do =VLOOKUP(a6*100,a1:b4,2,0) = #N/A
a b
1 6.875 -2.375
2 7.000 -2.500
3 7.125 -2.750
4 7.250 -3.375
5
6 7.125%

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You're probably getting very small rounding errors (See

http://cpearson.com/excel/rounding.htm

for more). Try

=VLOOKUP(ROUND(A6*100,3),A1:B4,2)

In article ,
"ynissel" wrote:

I cant figure out what I am doing wrong.
Why wont my lookup bring me back 2.7 ?
This is what Im getting:

If I do =VLOOKUP(a6*100,a1:b4,2) = 2.5
or if I do =VLOOKUP(a6*100,a1:b4,2,0) = #N/A
a b
1 6.875 -2.375
2 7.000 -2.500
3 7.125 -2.750
4 7.250 -3.375
5
6 7.125%

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

It's because 0 looks for an exact match and what you probably have is a
rounded displayed value where the underlying value is something different,
you might want to try with

=VLOOKUP(ROUND(A6*100,3),A1:B4,2,0)

or even round the table values in case their underlying values are different


Regards,

Peo Sjoblom

"ynissel" wrote:

I cant figure out what I am doing wrong.
Why wont my lookup bring me back 2.7 ?
This is what Im getting:

If I do =VLOOKUP(a6*100,a1:b4,2) = 2.5
or if I do =VLOOKUP(a6*100,a1:b4,2,0) = #N/A
a b
1 6.875 -2.375
2 7.000 -2.500
3 7.125 -2.750
4 7.250 -3.375
5
6 7.125%

  #4   Report Post  
ynissel
 
Posts: n/a
Default

Nope - Its an exact number ! No rounding at all !

"Peo Sjoblom" wrote:

It's because 0 looks for an exact match and what you probably have is a
rounded displayed value where the underlying value is something different,
you might want to try with

=VLOOKUP(ROUND(A6*100,3),A1:B4,2,0)

or even round the table values in case their underlying values are different


Regards,

Peo Sjoblom

"ynissel" wrote:

I cant figure out what I am doing wrong.
Why wont my lookup bring me back 2.7 ?
This is what Im getting:

If I do =VLOOKUP(a6*100,a1:b4,2) = 2.5
or if I do =VLOOKUP(a6*100,a1:b4,2,0) = #N/A
a b
1 6.875 -2.375
2 7.000 -2.500
3 7.125 -2.750
4 7.250 -3.375
5
6 7.125%

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Did you try my formula?

Regards,

Peo Sjoblom

"ynissel" wrote:

Nope - Its an exact number ! No rounding at all !

"Peo Sjoblom" wrote:

It's because 0 looks for an exact match and what you probably have is a
rounded displayed value where the underlying value is something different,
you might want to try with

=VLOOKUP(ROUND(A6*100,3),A1:B4,2,0)

or even round the table values in case their underlying values are different


Regards,

Peo Sjoblom

"ynissel" wrote:

I cant figure out what I am doing wrong.
Why wont my lookup bring me back 2.7 ?
This is what Im getting:

If I do =VLOOKUP(a6*100,a1:b4,2) = 2.5
or if I do =VLOOKUP(a6*100,a1:b4,2,0) = #N/A
a b
1 6.875 -2.375
2 7.000 -2.500
3 7.125 -2.750
4 7.250 -3.375
5
6 7.125%



  #6   Report Post  
ynissel
 
Posts: n/a
Default

Its not a rounding error - but it is the multiplication. If I enterin 7.125
I get the correct results but if I enter in .07125*100 I dont - even though
the result is exactly 7.125 ??? Help !

"JE McGimpsey" wrote:

You're probably getting very small rounding errors (See

http://cpearson.com/excel/rounding.htm

for more). Try

=VLOOKUP(ROUND(A6*100,3),A1:B4,2)

In article ,
"ynissel" wrote:

I cant figure out what I am doing wrong.
Why wont my lookup bring me back 2.7 ?
This is what Im getting:

If I do =VLOOKUP(a6*100,a1:b4,2) = 2.5
or if I do =VLOOKUP(a6*100,a1:b4,2,0) = #N/A
a b
1 6.875 -2.375
2 7.000 -2.500
3 7.125 -2.750
4 7.250 -3.375
5
6 7.125%


  #7   Report Post  
ynissel
 
Posts: n/a
Default

I just did and it worked but I really dont understand why. 7.125 is exacltly
the same as .07125*100.
Thanks nonetheless !

"Peo Sjoblom" wrote:

Did you try my formula?

Regards,

Peo Sjoblom

"ynissel" wrote:

Nope - Its an exact number ! No rounding at all !

"Peo Sjoblom" wrote:

It's because 0 looks for an exact match and what you probably have is a
rounded displayed value where the underlying value is something different,
you might want to try with

=VLOOKUP(ROUND(A6*100,3),A1:B4,2,0)

or even round the table values in case their underlying values are different


Regards,

Peo Sjoblom

"ynissel" wrote:

I cant figure out what I am doing wrong.
Why wont my lookup bring me back 2.7 ?
This is what Im getting:

If I do =VLOOKUP(a6*100,a1:b4,2) = 2.5
or if I do =VLOOKUP(a6*100,a1:b4,2,0) = #N/A
a b
1 6.875 -2.375
2 7.000 -2.500
3 7.125 -2.750
4 7.250 -3.375
5
6 7.125%

  #8   Report Post  
JE McGimpsey
 
Posts: n/a
Default

It *is* an internal rounding error. See the reference I gave you.

You've got a solution.

In article ,
"ynissel" wrote:

Its not a rounding error - but it is the multiplication. If I enterin 7.125
I get the correct results but if I enter in .07125*100 I dont - even though
the result is exactly 7.125 ??? Help !

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 04:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"