+ Reply to Thread
Results 1 to 2 of 2

Formula to lookup data in multiple columns, find a match and provide output.

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    dublin
    MS-Off Ver
    Excel 2010
    Posts
    1

    Formula to lookup data in multiple columns, find a match and provide output.

    ok, so here is my problem, I have 2 tables of data in a single sheet (table 1 = columns A&B) Table 2 = columns G&H), I have 2 additional columns in table 1 (C&D) that I need to add a forumla to based on results of some form of Lookup of table 2.

    I have attached a spreadsheet with my data, and here is wehat I need:

    I need to add formulas to column C to check that if the Test case ID in column A is found in column G, AND result Mode in column H = 'Run on Landscape' this will add a 'Yes' to column C; and also then add a formula to column D to check that if the testcase in Column A is found in column G AND result mode in Column H = 'Run on Portrait' this will add a 'Yes' to column D. If no match is found then 'No' should be added to each column/cell.

    I have gone round in circles with this all day: VLOOKUP, MATCH, INDEX, IF, nested VLOOKUP, etc, and am coming up with nothing that is working for me. Can you help??TestCaseResults.xlsx

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to lookup data in multiple columns, find a match and provide output.

    Try.

    In C2 and copy down.

    =IF(SUMPRODUCT(($G$2:$G$597=A2)*($H$2:$H$597="Run on Landscape"))>0,"YES","")

    In D2 and copy down.

    =IF(SUMPRODUCT(($G$2:$G$597=A2)*($H$2:$H$597="Run on Portrait"))>0,"YES","NO")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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.6.0 RC 1