+ Reply to Thread
Results 1 to 8 of 8

INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Kuching, SARAWAK
    MS-Off Ver
    Excel 2010
    Posts
    116

    INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

    Hi Excel Experts,

    I have data as below:-

    A1 B1 C1
    Jan Jimmy
    Feb Jimmy TeamA
    Jan Ronald TeamB
    Dec Donna TeamC
    Dec Doris TeamA
    Mar Ronald

    What I need is to return all data in the row that matches in column C="" OR "TeamA"
    I have googled to find the solutions but most of them shows based on multiple criterias, not conditions. I got the below formula but it only can be applied to return based on 1 condition i entered in $A$14, but not for both. I have tried modifying this with IF statement or "OR" in the MATCH command but didn't work. Pls help.:-

    {=IF(ISERROR(INDEX($A$1:$C$10,SMALL(IF($A$1:$A$10=$A$14,ROW($A$1:$A$10)),ROW($B1)),COLUMN(B1))),"",(INDEX($A$1:$C$10,SMALL(IF($A$1:$A$10=$A$14,ROW($A$1:$A$10)),ROW($B1)),COLUMN(B1))))}

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Kuching, SARAWAK
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

    Quote Originally Posted by :) Sixthsense :) View Post
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Hi,
    Attached is the sample for your reference.

    Thank you in advance.
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

    In A17 Cell - Array Formula - Requires CTRL+SHIFT+ENTER

    =INDEX(A$4:A$9,SMALL(IF(($C$4:$C$9="TeamA")+($C$4:$C$9=""),ROW($C$4:$C$9)-MIN(ROW($C$4:$C$9))+1),ROW(1:1)))

    Copy the A17 cell and paste it in B17 and C17 cells.

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

    Try this array formula, need to confirm with Ctrl+Shift+Enter

    Please Login or Register  to view this content.
    and then copy it to C17 and down until you get the blank row.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Kuching, SARAWAK
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

    Quote Originally Posted by :) Sixthsense :) View Post
    In A17 Cell - Array Formula - Requires CTRL+SHIFT+ENTER

    =INDEX(A$4:A$9,SMALL(IF(($C$4:$C$9="TeamA")+($C$4:$C$9=""),ROW($C$4:$C$9)-MIN(ROW($C$4:$C$9))+1),ROW(1:1)))

    Copy the A17 cell and paste it in B17 and C17 cells.

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
    Hi Sixthsense,

    Tqvm for the formula. It works to return the values I want. Just that I cannot ommit the '0' for those blanks even after I added the ISERROR condition in front of your formula.

  7. #7
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Kuching, SARAWAK
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

    Quote Originally Posted by sktneer View Post
    Try this array formula, need to confirm with Ctrl+Shift+Enter

    Please Login or Register  to view this content.
    and then copy it to C17 and down until you get the blank row.

    Hi sktneer,

    This works perfectly! Thanks alot to all! :-)

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: INDEX MATCH - To return all rows based on multiple conditions ("",SetA)

    Quote Originally Posted by Dahlia View Post
    cannot ommit the '0' for those blanks
    Just format the Last column as Accounting without Currency Symbol

    Glad it helps you and thanks for the feedback and rep

+ 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. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. Replies: 3
    Last Post: 12-07-2012, 04:45 AM
  3. Defining logic "Yes" or "No" , based on multiple conditions
    By pyol17 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 02:41 AM
  4. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  5. Replies: 4
    Last Post: 06-21-2010, 03:27 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