+ Reply to Thread
Results 1 to 6 of 6

Index/Match only returning results from 1st in array cosntant

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    LOTO, Missouri
    MS-Off Ver
    Excel 2010
    Posts
    3

    Index/Match only returning results from 1st in array cosntant

    Hi again! I have a new challenge and I'm stumped. In my spreadsheet I have data scattered between cells C5:T5 in this case and I'm searching through it trying to match colors from a hardcoded array. The following formula only returns the value of the cell if the word yellow is in one of the cells between C5:T5. What am I doing wrong?

    =IFERROR(INDEX(C5:T5,MATCH({"*yellow*","*red*","*blue*","*black*","*camo*","*orange*"},C5:T5,0)),"")

    Thanks SO mcuh!!!

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index/Match only returning results from 1st in array cosntant

    Hello and welcome to the forum.

    I recommend uploading a small representative sample of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    LOTO, Missouri
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Index/Match only returning results from 1st in array cosntant

    I'm focusing on column Z right now. I want to pull the webbing color from one of the cells if it is listed.


    Thanks!!
    Attached Files Attached Files
    Last edited by smorice; 05-21-2019 at 02:27 PM.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index/Match only returning results from 1st in array cosntant

    Try this in Z4:

    =IFERROR(INDEX({"yellow","red","blue","black","camo","orange"},MATCH(1,COUNTIF(C4:T4,{"*yellow*","*red*","*blue*","*black*","*camo*","*orange*"}),0)),"")

    Drag the formula down.

  5. #5
    Registered User
    Join Date
    02-27-2013
    Location
    LOTO, Missouri
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Index/Match only returning results from 1st in array cosntant

    63falcondude, Thank you SO much!!! I took it a step further to match the color and the word webbing to make sure it is pulling the right one and boom with your help it works!!! Thanks again!!!

    Here is the revised formula if someone else could benefit from it.
    =IFERROR(INDEX({"yellow","red","blue","black","camo","orange"},MATCH(1,COUNTIF(C4:T4,{"*yellow*","*red*","*blue*","*black*","*camo*","*orange*"} &"webbing"),0)),"")

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index/Match only returning results from 1st in array cosntant

    You’re welcome. Happy to help.

+ 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. [SOLVED] Index Match formula not returning correct results
    By JennOlsen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-30-2015, 02:59 PM
  2. [SOLVED] Index Small If array formula with mulitple criteria returning incorrect results
    By EmmatheDancer in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-08-2015, 12:52 PM
  3. Index Match Returning Results for Filtered Out Data
    By hermes980 in forum Excel General
    Replies: 2
    Last Post: 08-27-2014, 12:19 AM
  4. Index/Match or VLookup returning Multiple Results
    By Stoppeh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2014, 08:31 PM
  5. [SOLVED] index match not returning all results
    By nellyc in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-06-2013, 11:22 AM
  6. index match not returning any results
    By nellyc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2013, 03:29 PM
  7. [SOLVED] index match not returning all results
    By nellyc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-25-2013, 08:06 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