+ Reply to Thread
Results 1 to 5 of 5

Thread: VLookup with different criterias

  1. #1
    Registered User
    Join Date
    11-25-2011
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    VLookup with different criterias

    Hi,

    I have one data table with that contains my data rows with value, date and currency.

    I have a second table where I have my exchange rates.

    I need a formula in the first table that depending on the date and currency code, returns the correct currency rate for that particualr row.

    1st table
    Period/Curr/Amount/
    Jan/GBP/3000
    Jan/USD/1000
    Jan/EUR/1500
    Feb/GBP/3000
    Feb/USD/1000
    Feb/EUR/1500

    2nd table
    Currency in column header GBP/USD/EUR
    Months on rows
    And rates in the matrix between them

    So I need a new column in the first table, that gets the correct rate from my currency table depending on the currency code and month.

    Any ideas?

  2. #2
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    MS Excel 2010
    Posts
    2,247

    Re: VLookup with different criterias

    Use

    =INDEX(Sheet2!$A$1:$D$20,MATCH($A2,Sheet2!$A:$A,0),MATCH($B2,Sheet2!$1:$1,0))

  3. #3
    Registered User
    Join Date
    11-25-2011
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VLookup with different criterias

    Bob, can you share a link where I can read about INDEX function and also MATCH function or you can explain how this work.

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,796

    Re: VLookup with different criterias

    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    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

  5. #5
    Registered User
    Join Date
    11-25-2011
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VLookup with different criterias

    Thanks, I got it!

+ 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.2.0