+ Reply to Thread
Results 1 to 7 of 7

Vlookup only returning values when true ?!?

  1. #1
    Registered User
    Join Date
    04-20-2013
    Location
    quebec canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Vlookup only returning values when true ?!?

    Hi,

    I'm new on this forum, as with many of you guys i assume, a frustrating problem got me to sign up.

    Basically I'm trying to get vlookup to work and get information from another worksheet I have in the same excel file. (see shipping rates by supplier worksheet for vlookup formula in supplier column)

    =VLOOKUP(B4,'Product Nomenclature'!B:Y,6,FALSE)

    The vlookup function will only return values when it is = true, which is not what i want since I am looking for exact values, when using false, I get N/A back as an answer.

    I've tried, trim and value functions as well as formatting related causes which hasn't helped me thus far.

    I've included my excel sheet hoping that perhaps one of you will be able to help me!

    Thanks

    Selling-price-worksheet_2013-03-04(2).xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Vlookup only returning values when true ?!?

    hi , welcome to the forum. i'm guessing you need this:
    =INDEX(Table2[SUPPLIER REFERENCE],MATCH(Table6[[#This Row],[SKU ]],Table2[PART NO'#],0))

    VLOOKUP looks from the left column & returns the right. your lookup_value exist in column W while what you want is in column G, so that can't normally work with VLOOKUP. INDEX & MATCH should help you. and you dont have to refer to the whole column like B:B since you are using Tables.

    the red column is what you want to return (i referred to G5:G237)
    the green value is B4 in "Shipping rates by supplier"
    the blue column is where you can find the Part # (i referred to W5:W237)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    04-20-2013
    Location
    quebec canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Vlookup only returning values when true ?!?

    Thank you so much, having this work makes my day start off much better!

  4. #4
    Registered User
    Join Date
    04-20-2013
    Location
    quebec canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Vlookup only returning values when true ?!?

    I got a little further and realize I have another problem

    Basically, since Im using related data across different worksheets, when I end up sorting in the reference worksheet, the data contained in the other work sheet(s) does not correspond anymore to the referenced value.

    How can I keep the integrity of my tables between worksheets when using sorting & other functions?!?

  5. #5
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Vlookup only returning values when true ?!?

    when the data is already returned and you need not anymore to change the returned value, you can do copy and paste special: values - to maintain the returned value and remove the formula... that way, even if the source of the vlookup is changed, your returned value remains the same...

    shortcut key
    alt + hvv (paste special - values)(excel 2007)
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  6. #6
    Registered User
    Join Date
    04-20-2013
    Location
    quebec canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Vlookup only returning values when true ?!?

    Hi thanks for the suggestion, the thing is that I will be updating the file all the time so I will want the index formula to stay.

  7. #7
    Registered User
    Join Date
    04-21-2013
    Location
    Grahamstown, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Vlookup only returning values when true ?!?

    Try the following:

    =INDEX(Table3,MATCH([@SKU],Table2[[#All],[PART NO'#]],0),MATCH("SUPPLIER REFERENCE",Table2[#Headers],0))

    Table3 is a new Named Range referring to $B$4:$Y$238 on sheet "Product Nomenclature"
    The remaining references are unchanged

    Hope this works.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1