+ Reply to Thread
Results 1 to 7 of 7

Index Match with an or function

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Index Match with an or function

    Hey all,

    I have a table with two columns. One column is names, the second column is their class (1, 2, 3, or 4). I am looking to create a formula that shows all of the names from class 1, 2, or 3, but eliminates all of the blanks for the rest of the cells.

    I have attached a sample file as an example.

    Regards,
    B
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Index Match with an or function

    you can try Pivot Table
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Index Match with an or function

    I'm going to have a bunch of tabs that will update pretty regularly. Do you know if it's possible to do with a formula?

    Thanks,
    B

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Index Match with an or function

    You could use column A as a helper column, with this formula in A3:

    =IF(C3<=3,MAX(A$2:A2)+1,"-")

    Copy this down to the bottom of your list. Then you can use this formula in E3:

    =IFERROR(INDEX($B$3:$B$18,MATCH(ROWS($1:1),$A$3:$A$18,0)),"")

    and copy this down.

    Hope this helps.

    Pete

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Index Match with an or function

    Quote Originally Posted by BWellman View Post
    I'm going to have a bunch of tabs that will update pretty regularly
    You can use PivotTable for many sheets and update all of them

  6. #6
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Index Match with an or function

    Pete - In the file I'm actually using, the column C values are all words, but your way would still work with an added column. I can start with that because I'm assuming it's not possible to combine a match with either:
    Or (one of three values)
    <> does not equl

    Sandy - Can't use pivot tables, sorry Thanks for the help though!

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Index Match with an or function

    I wonder why, but I think there is a serious reason. No problem, try formulas. good luck

    thanks for the feedback

+ 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 in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  2. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  3. Problems applying INDEX-MATCH-MATCH function on other data
    By LennartB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-13-2015, 05:33 AM
  4. function INDEX MATCH MATCH doesn´t work
    By leonelcd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2015, 11:36 AM
  5. [SOLVED] Stuck on Match function with #N/A; attempting to reverse Index/Match
    By Cappytano in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2014, 06:39 PM
  6. Replies: 6
    Last Post: 03-17-2014, 08:10 PM
  7. Replies: 3
    Last Post: 06-17-2013, 12:37 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