+ Reply to Thread
Results 1 to 4 of 4

Vlookup?

  1. #1
    Registered User
    Join Date
    02-26-2009
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    64

    Vlookup?

    Hi Guys!

    I have a problem which i think can be solved but im not quite sure how to execute it.

    I have a table which has 12 commodities down the left and 14 currencies across the top equating in 168 cells of information with a price specific to each commodity in a given currency.

    We have a set of checklists 250 in total that are currently manually entered.

    In each checklist we have to enter the commodity and currency and then the price for that combination. Is there a way to have the price cell automated based upon what is entered within the commodity and currency cell using information from our Price Table?

    Thanks
    Last edited by demon8991; 03-22-2010 at 04:09 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup?

    I use INDEX/MATCH for this, but you can also use VLOOKUP() or LOOKUP() based on some other restrictions about the layout of the table you're searching. INDEX/MATCH has none of those restrictions.

    Here's some sample sheets showing what I think you're looking to do.

    INDEX/MATCH Examples

    The IndexMatch-Simple.xls file has a two-dimensional table that is essentially exactly what you're trying to do. You can see it in operation on the Main sheet or on the Distances sheet.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup?

    use index/match
    =INDEX(A1:O13,MATCH(A19,A1:A13,0),MATCH(A20,A1:O1,0))
    where a2:a13 are your 12 commodities and b1:O1 your 14 currencies
    and a19 is input commodity a20 input currency
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    02-26-2009
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    64

    Re: Vlookup?

    Thank you very much guys you have helped no end!

    The formula works a treat!

+ 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