+ Reply to Thread
Results 1 to 6 of 6

Search two columns, match, then vlookup?

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    25

    Search two columns, match, then vlookup?

    Sheet 1
    A=service ticket #
    B=person name
    C=part number
    D= create date

    I am trying to look up the value in column A, based on criteria

    I want to say - if you can find/match “John Smith” in column B, and part number “abc-x” in column C, then return column A service ticket #.

    If name and part # match, then search “service ticket” column for service ticket number.

    Thx in advance.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Search two columns, match, then vlookup?

    Hi JulieQ,

    You need something like this:
    =IFERROR(INDEX($A$1:$A$11,MATCH(F2&G2,$C$1:$C$11&$B$1:$B$11,0),0),"No Match")

    Find it in the attached example.
    Index Match 2 columns.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Search two columns, match, then vlookup?

    In the same file Enclosed by MarvinP Try this

    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($C$1:$C$11)/(($C$1:$C$11=$F2)*($B$1:$B$11=$G2)),1)),"No Match")
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Search two columns, match, then vlookup?

    Please try

    =iferror(lookup(1,1/(B$1:B$100="John Smith")/(C$1:C$100="abc-x"),A$1:A$100),"")

  5. #5
    Registered User
    Join Date
    02-10-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: Search two columns, match, then vlookup?

    Thank-you! I went with: =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($C:$C)/(($C:$C=$F2)*($B:$B=$G2)),1)),"No Match")

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Search two columns, match, then vlookup?

    Pl mark the thread solved.

+ 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. VLOOKUP with Search/Match Function Help
    By Jdugan4 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2016, 06:13 PM
  2. Replies: 2
    Last Post: 06-29-2013, 11:58 PM
  3. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  4. Replies: 2
    Last Post: 02-14-2011, 11:23 AM
  5. Using Search with either vlookup or match and index
    By jlowenstein in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 03:05 PM
  6. Replies: 7
    Last Post: 06-30-2005, 03:05 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