#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default vlookup

Why is my vlookup formula returning the number in the row above what it
should be? My sheet looks like this;
H K
39265 CLAMP, RAIL SPLICE =vlookup(h3, costs,2).


sheet 2
C D
39265 CAM LINKS 2 POSTION FOR FR150 $150
39265 CAM LINKS PREFORM INSERT HOLDE $700
39265 CLAMP, RAIL SPLICE, 3" $32.24

My formula keeps returning $700 instead of the $32.24. If I delete the $700
it returns $150. I've had the issue before where my cell range is wrong but
this time I haven't been able to figure it out.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 342
Default vlookup

Unless the match is exact your formula will return the the first lookup that
is smaller.
=vlookup(h3,costs,2,false) will return only exact matches.

if you delete , 3" from the end of your lookup value it will give you the
correct answer.

You might consider reviewing the help file for vlookup.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup

Since you're matching on text, I bet you want an exact match.

Try:

=vlookup(h3, costs,2,False)

That 4th parm (false) specifies that you want an exact match.

bduncan wrote:

Why is my vlookup formula returning the number in the row above what it
should be? My sheet looks like this;
H K
39265 CLAMP, RAIL SPLICE =vlookup(h3, costs,2).

sheet 2
C D
39265 CAM LINKS 2 POSTION FOR FR150 $150
39265 CAM LINKS PREFORM INSERT HOLDE $700
39265 CLAMP, RAIL SPLICE, 3" $32.24

My formula keeps returning $700 instead of the $32.24. If I delete the $700
it returns $150. I've had the issue before where my cell range is wrong but
this time I haven't been able to figure it out.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default vlookup

Thanks for the quick respone. I saw that in the help file, but what threw me
off was why wouldn't it find $150 first since it comes before $700.

Unfortunately our accounting software didn't export the names the same on
both sheets. I actually had to seperate columns with formulas and then
combine 2 columns to find something close in relation on both sheets.
This is the first time I've tried using true instead of false in my formula.

"TomPl" wrote:

Unless the match is exact your formula will return the the first lookup that
is smaller.
=vlookup(h3,costs,2,false) will return only exact matches.

if you delete , 3" from the end of your lookup value it will give you the
correct answer.

You might consider reviewing the help file for vlookup.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default vlookup

Something else I forgot to mention. This is at the top of my sheet so if I
delete the 2 rows above the value I'm looking for I get an n/A.

"TomPl" wrote:

Unless the match is exact your formula will return the the first lookup that
is smaller.
=vlookup(h3,costs,2,false) will return only exact matches.

if you delete , 3" from the end of your lookup value it will give you the
correct answer.

You might consider reviewing the help file for vlookup.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default vlookup

Thanks for the response. I tried that first and got n/a#. Even made sure to
format columns as text.

"Dave Peterson" wrote:

Since you're matching on text, I bet you want an exact match.

Try:

=vlookup(h3, costs,2,False)

That 4th parm (false) specifies that you want an exact match.

bduncan wrote:

Why is my vlookup formula returning the number in the row above what it
should be? My sheet looks like this;
H K
39265 CLAMP, RAIL SPLICE =vlookup(h3, costs,2).

sheet 2
C D
39265 CAM LINKS 2 POSTION FOR FR150 $150
39265 CAM LINKS PREFORM INSERT HOLDE $700
39265 CLAMP, RAIL SPLICE, 3" $32.24

My formula keeps returning $700 instead of the $32.24. If I delete the $700
it returns $150. I've had the issue before where my cell range is wrong but
this time I haven't been able to figure it out.


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 342
Default vlookup

If you don't get an exact match it will return N/A.
I suspect the only way you will get this to work is if you find a way to get
the values on the two sheets to be exact. Maybe you can use a part number or
some other identifier.
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup

That means that there isn't an exact match.

This fuzzy matching could be difficult to implement.

Any chance you could just take the first few characters (say 15 characters) and
match on that?

=vlookup(left(h3,15)&"*",costs,2,false)



bduncan wrote:

Thanks for the response. I tried that first and got n/a#. Even made sure to
format columns as text.

"Dave Peterson" wrote:

Since you're matching on text, I bet you want an exact match.

Try:

=vlookup(h3, costs,2,False)

That 4th parm (false) specifies that you want an exact match.

bduncan wrote:

Why is my vlookup formula returning the number in the row above what it
should be? My sheet looks like this;
H K
39265 CLAMP, RAIL SPLICE =vlookup(h3, costs,2).

sheet 2
C D
39265 CAM LINKS 2 POSTION FOR FR150 $150
39265 CAM LINKS PREFORM INSERT HOLDE $700
39265 CLAMP, RAIL SPLICE, 3" $32.24

My formula keeps returning $700 instead of the $32.24. If I delete the $700
it returns $150. I've had the issue before where my cell range is wrong but
this time I haven't been able to figure it out.


--

Dave Peterson


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default vlookup

Thanks for the formual that is what I needed. What does the &"*" mean. I'm
guessing it has something to do with only matching part of the cell?

"Dave Peterson" wrote:

That means that there isn't an exact match.

This fuzzy matching could be difficult to implement.

Any chance you could just take the first few characters (say 15 characters) and
match on that?

=vlookup(left(h3,15)&"*",costs,2,false)



bduncan wrote:

Thanks for the response. I tried that first and got n/a#. Even made sure to
format columns as text.

"Dave Peterson" wrote:

Since you're matching on text, I bet you want an exact match.

Try:

=vlookup(h3, costs,2,False)

That 4th parm (false) specifies that you want an exact match.

bduncan wrote:

Why is my vlookup formula returning the number in the row above what it
should be? My sheet looks like this;
H K
39265 CLAMP, RAIL SPLICE =vlookup(h3, costs,2).

sheet 2
C D
39265 CAM LINKS 2 POSTION FOR FR150 $150
39265 CAM LINKS PREFORM INSERT HOLDE $700
39265 CLAMP, RAIL SPLICE, 3" $32.24

My formula keeps returning $700 instead of the $32.24. If I delete the $700
it returns $150. I've had the issue before where my cell range is wrong but
this time I haven't been able to figure it out.

--

Dave Peterson


--

Dave Peterson

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup

Some of excel's functions support wildcards.

The asterisk (*) represent any set of characters.

You could also use a question mark (?) that would represent a single character.

bduncan wrote:

Thanks for the formual that is what I needed. What does the &"*" mean. I'm
guessing it has something to do with only matching part of the cell?

"Dave Peterson" wrote:

That means that there isn't an exact match.

This fuzzy matching could be difficult to implement.

Any chance you could just take the first few characters (say 15 characters) and
match on that?

=vlookup(left(h3,15)&"*",costs,2,false)



bduncan wrote:

Thanks for the response. I tried that first and got n/a#. Even made sure to
format columns as text.

"Dave Peterson" wrote:

Since you're matching on text, I bet you want an exact match.

Try:

=vlookup(h3, costs,2,False)

That 4th parm (false) specifies that you want an exact match.

bduncan wrote:

Why is my vlookup formula returning the number in the row above what it
should be? My sheet looks like this;
H K
39265 CLAMP, RAIL SPLICE =vlookup(h3, costs,2).

sheet 2
C D
39265 CAM LINKS 2 POSTION FOR FR150 $150
39265 CAM LINKS PREFORM INSERT HOLDE $700
39265 CLAMP, RAIL SPLICE, 3" $32.24

My formula keeps returning $700 instead of the $32.24. If I delete the $700
it returns $150. I've had the issue before where my cell range is wrong but
this time I haven't been able to figure it out.

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 09:18 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"