Search code examples
excelexcel-formulacell

Excel Lookup Formula with Two Conditions


Sorry about the heading but im finding it hard to explain so ill give it my best shot.

Here is my problem I have 3 cells: Lender, product and productID I have a vlookup that fills the lender and product cells just fine However i want a way to bring back the productID back from another worksheet matching with lender and product.

For instance if call1 = newcastle and cell2 = 2 year fixed then cell3 = 422 enter image description here

I tried using a vlookup but doesnt seem to work, Any help on this would be greatly appreciated. Thanks


Solution

  • Another alternative to using combination of the MATCH and INDEX functions that some may find more straightforward is to first insert a column on your lookup table and concatenate the cobmination of columns you wish to search by.

    =CONCATENATE(B8,C8)

    Then you can still use the Vlookup function, but instead of only entering the one column to lookup on, you would combined them in the lookup so that the combination of them looks up to the combination of them on the lookup table.

    =VLOOKUP(B3&C3,A9:D10,4,0)