+ Reply to Thread
Results 1 to 5 of 5

How to return another cells content using Index,Match with a IF/OR statement

  1. #1
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    111

    How to return another cells content using Index,Match with a IF/OR statement

    I want to return another cells contents using index and matching 2 other criteria. One of those criteria can be either of 2 things.

    I can get a correct result if I only use strictly 2 criteria without a IF/OR statement:
    {=INDEX($F$28:$F$33,MATCH(1,(Sheet3!C5=$C$28:$C$33)*(Sheet3!E5="Yellow"),0))}

    But get an incorrect result when using with a IF/OR statement:
    {=INDEX($F$28:$F$33,MATCH(1,(Sheet3!C7=$C$28:$C$33)*(IF(OR(Sheet3!E7="Yellow",Sheet3!E7="Red"),0))))}

    See cell F7 in attachment and thank you for any advise.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How to return another cells content using Index,Match with a IF/OR statement

    Maybe this one?

    In F3:

    =INDEX($F$28:$F$33,MATCH(1,(Sheet3!C3=$C$28:$C$33)*($E$28:$E$33=E3),0))
    Last edited by Limor_OP; 05-19-2020 at 01:21 PM.

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How to return another cells content using Index,Match with a IF/OR statement

    And this is your amended formula:
    In F3:

    =INDEX($F$28:$F$33,MATCH(1,(Sheet3!C3=$C$28:$C$33)*($E$28:$E$33=E3),0))
    Last edited by Limor_OP; 05-19-2020 at 01:21 PM.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to return another cells content using Index,Match with a IF/OR statement

    In F3:
    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    111

    Re: How to return another cells content using Index,Match with a IF/OR statement

    Thanks for the replies. I used the method from bebo021999 since it uses the IF - OR requirement which I was seeking.

+ 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. Use INDEX and MATCH to return values from 2 other cells
    By nestlerja in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-19-2019, 12:07 PM
  2. [SOLVED] Using INDEX - Match, Match 2 cells and return another cells' data
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-17-2018, 09:15 AM
  3. [SOLVED] INDEX/MATCH to return cells 4 & 5 places below my Match...
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-19-2017, 07:56 AM
  4. [SOLVED] INDEX/MATCH or Equivalent to Return Data with Blank Cells
    By bcathell in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-28-2017, 01:57 PM
  5. [SOLVED] Index match value return 1 st cells corresponding to the range
    By silambarasan.J in forum Excel General
    Replies: 6
    Last Post: 04-22-2015, 04:55 AM
  6. Index match with conditions depending on content of other cells
    By dudeonthebayou in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2015, 02:11 PM
  7. Replies: 6
    Last Post: 07-10-2010, 05:16 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