+ Reply to Thread
Results 1 to 7 of 7

Question about vlookup

  1. #1
    Registered User
    Join Date
    03-02-2009
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    26

    Question about vlookup

    Quantity----------------Price---------------Cost
    50 to 99 boxes--------£596.48--------------£32.54
    100 to 149 boxes ------£65.01


    Theres the data, and i want to create a vlookup, range, wherein another spreadsheet i can have Quantity 134, and it will display the price (65.01)

    how do i go about doing this

    thanks again
    Last edited by pepsi; 03-02-2009 at 11:59 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Question about vlookup

    Welcome to the forum.

    Skip the "to xx", it's redundant. Just use a two-column table.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Question about vlookup

    In the Qty column place only the lower bounds, ie. 0, 50,100

    Then use Lookup()


    =Lookup(A1,Sheet1!$A$1:$B$100)

    where A1 is your lookup value (134)

    And Sheet1!A1:B100 is your table.. in ascending order (make sure to have a 0 as your first entry and what you want returned if lookup value 0 to 50
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    03-02-2009
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Question about vlookup

    hey soz, forgot to mention that i can't remove the 'xx to xx boxes' part, it needs to stay there.

    this parts rally confusing me :O

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Question about vlookup

    You would need something like:

    =INDEX(Sheet1!$B$1:$B$100,MATCH(K1,LEFT(Sheet1!$A$1:$A$100,FIND(" ",Sheet1!$A$1:$A$100)-1)+0))

    which is confirmed with CTRL+SHIFT+ENTER instead of just ENTER... you will see { } brackets appear around the formula.

  6. #6
    Registered User
    Join Date
    03-02-2009
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Question about vlookup

    is there a way you could show me how to do that using the Vlookup function box instead of the formual, as i dont userstand that :S

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Question about vlookup

    See attached...

    In Sheet2, A1 enter a number, Sheet2, B1 gets a result from table in Sheet1, A:B

    Adjust the ranges and confirm the formula by holding CTRL+SHIFT together and pressing ENTER.

    Alternatively, if you really want to use Vlookup, then add a helper column between the current 2 columns that extract the lower bound.. with formula: =LEFT(A1,FIND(" ",A1)-1)+0 and then use that as your lookup range..
    Attached Files Attached Files

+ 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