+ Reply to Thread
Results 1 to 4 of 4

Need to use vlookup to find 2 matches

  1. #1
    Registered User
    Join Date
    03-15-2007
    Posts
    53

    Need to use vlookup to find 2 matches

    Basically I need to find a match in column A and if it finds that match find a match in column B then return the value of lets say column C. Thanks in advance for any help.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Insert a new col C
    Concatenate columns A & B into it (i.e. = Ax & Bx)
    lookup the concatenated value in the concatenated column in Col D
    Hide Col C

    Job done

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Another way is =if(and(a1=value1;b1=value2),c1,"")
    Adapt the values and cells to your needs
    HTH

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671
    =SUMPRODUCT((A1:A20="Sent TP")*1;(B1:B20=B1)*1)

    Explination:
    (A1:A20="Sent TP") will return an array of 20 values either True or False
    By multiplying these with 1 the array changes to value with either a zero (0) or a one (1)
    Sumproduct does nothing else then multiplying these new arrays

    Do not forget to press Ctrl+Shift+Enter when you have entered the formula to make it an Array Function

    Cheers,
    R

+ 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. Using VLOOKUP to find multiple occurrences and find the Total quantity
    By susanpa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2009, 09:54 AM
  2. Trying to use VLOOKUP with 2 matches?
    By Zaraf in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-19-2008, 01:20 AM
  3. Vlookup using two columns-needs to match the first two column
    By pduubb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2008, 01:21 PM
  4. VLOOKUP - Return sum of all matches in Range?
    By Wiggz in forum Excel General
    Replies: 3
    Last Post: 01-25-2007, 06:42 AM
  5. Replies: 4
    Last Post: 10-18-2006, 12:25 PM

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