+ Reply to Thread
Results 1 to 5 of 5

return data based on matching 2 criteria

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2010
    Posts
    9

    return data based on matching 2 criteria

    Hi,

    I'm trying to get Excel to do a complicated IF function, which I don't have a lot of experience with. I'm definitely open to other suggestions as well. Basically, I need Excel to return one value if two conditions are met in different columns of data. I've attached an example to clarify.

    Sheet 1 contains reference information, which will be reference to complete the return column in sheet 2. I need a formula that will be entered into C2:C10 on Sheet 2 that will give the listed returns. It needs to verify that first that Sheet 2, A2 matches data from column A in Sheet 1, and then verify that Sheet 2, B2 matches data from column B in Sheet 1 before returning either "Active" or "Inactive" depending on the reference. Not sure if that makes sense, but basically I need the sheet to give the returns I've got listed in red on sheet 2, based on data from sheet 1. Thanks in advance!
    Attached Files Attached Files
    Last edited by FDibbins; 06-29-2016 at 11:06 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Complicated IF Function

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Complicated IF Function

    (I have changed the title for you)

    Try this, copied down...
    =INDEX(Sheet1!$C$2:$C$17,MATCH(Sheet2!A2&Sheet2!B2,INDEX(Sheet1!$A$2:$A$17&Sheet1!$B$2:$B$17,0),0))
    Last edited by FDibbins; 06-29-2016 at 11:27 PM.

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: return data based on matching 2 criteria

    =LOOKUP(2,1/(Sheet1!A$2:A$17=A2)/(Sheet1!B$2:B$17=B2),Sheet1!C$2:C$17)

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: return data based on matching 2 criteria

    Two more ways. Both array entered in C2 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Dave

+ 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. Need Help ( Complicated IF function - Maybe- )
    By afzalzada in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2015, 06:15 AM
  2. [SOLVED] Complicated IF function
    By maidenhel in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-11-2014, 05:16 AM
  3. Complicated IF function with example
    By ruthyeh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2013, 06:40 PM
  4. Complicated IF function
    By ruthyeh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2013, 10:59 AM
  5. A Complicated Look up Function?
    By screamnyak in forum Excel General
    Replies: 2
    Last Post: 02-24-2011, 01:01 PM
  6. Complicated function; Can it be done?
    By The Boy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-30-2007, 08:10 AM

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