+ Reply to Thread
Results 1 to 10 of 10

Need Help! INDEX with multiple criterias

  1. #1
    Registered User
    Join Date
    10-29-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    62

    Need Help! INDEX with multiple criterias

    Hi,

    this is my current formula but I wanted to add more criterias as I have "NAME1, NAME2, NAME3, NAME4, NAME5" in a row for excel to return the correct value to me.

    =IF(ISNUMBER(INDEX($AH$3:$FX$3,1,MATCH("NAME1",AH4:FX4,0)))=TRUE,INDEX($AH$3:$FX$3,1,MATCH("NAME1*",AH4:FX4,0)),INDEX($AH$3:$FX$3,1,MATCH("NAME2*",AH4:FX4,0)))

    Appreciate if you could help to let me know how I should amend my formula.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Need Help! INDEX with multiple criterias

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    10-29-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    62

    Re: Need Help! INDEX with multiple criterias

    Attachment as shown
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Need Help! INDEX with multiple criterias

    Where in the attachment is the formula?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    10-29-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    62

    Re: Need Help! INDEX with multiple criterias

    It's at column B row 4 to 7.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Need Help! INDEX with multiple criterias

    In row 5, there are 2 matches (AL/ML) (or 3 AL/ML/PTO ?) so expected result is ...???

  7. #7
    Registered User
    Join Date
    10-29-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    62

    Re: Need Help! INDEX with multiple criterias

    I want multiple results.


    in the event,
    1) it match AL, return value of AL.
    2) if no AL, return value of ML
    3) if no AL or ML, return value of PTO


    Sorry that I could not explain myself clearly. Hope you know what I mean. Thanks!

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Need Help! INDEX with multiple criterias

    ... so there is a priority sequence i.e AL==>ML==>PTO==>??? so if both AL & ML are present, result is ONLY AL ??

    and AL/PTO ???

    Please add SAMPLE output your you posted file.

  9. #9
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Need Help! INDEX with multiple criterias

    Try this ...

    =IFERROR(INDEX($AH$3:$FX$3,1,MATCH("NAME1",AH4:FX4,0)),
    IFERROR(INDEX($AH$3:$FX$3,1,MATCH("NAME1*",AH4:FX4,0)),
    INDEX($AH$3:$FX$3,1,MATCH("NAME2*",AH4:FX4,0))))

  10. #10
    Registered User
    Join Date
    10-29-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    62

    Re: Need Help! INDEX with multiple criterias

    Thanks @Phuocam! Your formula works for me even though I am not good in explaining in words. Appreciate!

+ 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 with OR multiple criterias
    By Dahlia in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-24-2017, 11:26 AM
  2. [SOLVED] Index match multiple criterias
    By salimnore in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2015, 07:24 PM
  3. [SOLVED] Index-Match-(or Vlookup) for Multiple criterias.
    By Anatawan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2014, 02:38 AM
  4. [SOLVED] INDEX & MATCH w multiple criterias?
    By Eemmai in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2012, 05:20 AM
  5. index small issue - with multiple criterias
    By jw01 in forum Excel General
    Replies: 5
    Last Post: 10-22-2012, 05:17 PM
  6. INDEX & MATCH, 3 criterias, multiple sheets
    By Jaakkolo in forum Excel General
    Replies: 15
    Last Post: 07-04-2012, 02:16 AM
  7. index match based on multiple criterias
    By jw01 in forum Excel General
    Replies: 4
    Last Post: 09-13-2011, 02:21 PM

Tags for this Thread

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