+ Reply to Thread
Results 1 to 6 of 6

Vlookup based on two conditions?

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Vlookup based on two conditions?

    I have a list of fund names in Column A. I also have currencies for these in column B. Some fund names may exist more than once but using different currencies.

    I need a formula in column C which will populate data from sheet 'Master Data' based on the fund name AND currency.

    So far I can only get it to look up based on the fund name, and not the currency also.

    This is the formula I am currently using:
    =IF(A2="","",VLOOKUP($A2,'Master Data'!$A:$F,2,FALSE))

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Vlookup based on two conditions?

    Which column on Master Data has the currency?
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Re: Vlookup based on two conditions?

    Column C of Master Data has the currency. Apologies I forgot to mention

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Vlookup based on two conditions?

    You can use a formula like this:

    =IF(OR(A2="",B2=""),"",LOOKUP(2,1/('Master Data'!$A:$A=$A2)/('Master Data'!$C:$C=$B2),'Master Data'!$B:$B))

    assuming B2 has the currency in it.

  5. #5
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Re: Vlookup based on two conditions?

    This worked great, thanks! Which part of the formula would I need to change to pick up data from other rows of 'Master Data' ? So I still want to look up using the fund name (column A of Master Data) and currency (column C of Master Data). But what if I wanted this to populate from column D or E or F, etc.?

  6. #6
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Re: Vlookup based on two conditions?

    Apologies I have now figured this out on my own :D Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  2. calculation using reference to cells based on conditions
    By shrimic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2012, 12:32 PM
  3. Create a nesting formula w/ multiple conditions based on fields w/VLOOKUP
    By NiqueDomie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2011, 09:59 AM
  4. Vlookup - + 2 conditions
    By scabertrain in forum Excel General
    Replies: 8
    Last Post: 03-04-2010, 05:53 PM
  5. Counting based upon 2 conditions that are text based
    By walkerdayle in forum Excel General
    Replies: 7
    Last Post: 08-21-2006, 08:35 PM

Tags for this Thread

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