+ Reply to Thread
Results 1 to 14 of 14

Index/Match Formula - multiple criteria in one column

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    Cicero, NY
    MS-Off Ver
    Excel 2013
    Posts
    35

    Index/Match Formula - multiple criteria in one column

    I have the following formula: {=IFERROR((INDEX(Details!$I$2:$I$3000,(MATCH(1,(Details!$B$2:$B$3000=A226)*(Details!$A$2:$A$3000="234411")*(Details!$D$2:$D$3000="b"),0)))),"")}
    I need the phrase (Details!$D$2:$D$3000="b") to include "a" or "b". Is that possible?

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Index/Match Formula - multiple criteria in one column

    Maybe try change this Details!$D$2:$D$3000="b" to Details!$D$2:$D$3000={"a","b"}

  3. #3
    Registered User
    Join Date
    04-12-2013
    Location
    Cicero, NY
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Index/Match Formula - multiple criteria in one column

    I had tried that with no success.

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Index/Match Formula - multiple criteria in one column

    Can you post your workbook?

  5. #5
    Registered User
    Join Date
    04-12-2013
    Location
    Cicero, NY
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Index/Match Formula - multiple criteria in one column

    I'll give it a try.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-12-2013
    Location
    Cicero, NY
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Index/Match Formula - multiple criteria in one column

    Try this one instead..........
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Index/Match Formula - multiple criteria in one column

    What are you doing with Column D in detail worksheet? I am a little bit lost on your lookup criteria. But I can see it is definitely doable.

  8. #8
    Registered User
    Join Date
    04-12-2013
    Location
    Cicero, NY
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Index/Match Formula - multiple criteria in one column

    If you look in cells G226 and H226 on the Analysis tab, you will find the formulas I'm working with.
    I would like the values in col G and Col H to fill in only if the value in col D on the Details tab is A or B.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Index/Match Formula - multiple criteria in one column

    If it is ship to 23411 in Column A (details), what do you want in RIM status 234065 on analysis?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  10. #10
    Registered User
    Join Date
    04-12-2013
    Location
    Cicero, NY
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Index/Match Formula - multiple criteria in one column

    I need it to match the part number and the branch number (234065 or 234411) from the Analysis tab to the
    Details tab, and return the RIM status, but only when the Freq Class Code on the Details tab is "A" or "B".

  11. #11
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Index/Match Formula - multiple criteria in one column

    Try this. I am still not very clear on the criteria, but I guess I will take a short.

    Enter the formula with Ctrl + Shift + Enter keys together since it is an array formula

    =IFERROR(INDEX(Details!$I$2:$I$2617,IF(TRIM(LEN(B4&C4))=0,"",IF(B4<>"",MATCH(G$1&$A4&"A",Details!$A$2:$A$2617&Details!$B$2:$B$2617&Details!$D$2:$D$2617,0),MATCH(G$1&$A4&"B",Details!$A$2:$A$2617&Details!$B$2:$B$2617&Details!$D$2:$D$2617,0)))),"")
    Attached Files Attached Files

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Index/Match Formula - multiple criteria in one column

    Hi. I didn' quite understand your answer at post 10. So... Here's my punt at an answer (Version 1, anyway...). Wherever you're getting this from, it is storing the numbers as text. That's a pain. So (I hope that is is possible in the real sheet) I "bulk converted" everything to a number. I then cut down your data to something more manageable (for testing purposes).

    Does this look like what you want. It doesnt find the 3 entries (in gold shading) on the detailas sheet, where col D is neither A nor B. It didn't make sense (to me) why return should be made in BOTH the RIM columns, if only ONE applied. So, I've meddled with that, too.

    So. It'll not be what you want (probably... yet). But maybe it's a start.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    04-12-2013
    Location
    Cicero, NY
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Index/Match Formula - multiple criteria in one column

    I apologize for not being able to explain my problem more clearly. I believe I solved it with a Sumproduct formula.
    =IF(SUMPRODUCT((Details!$A$2:$A$3000="234065")*(Details!$B$2:$B$3000=A4)*(Details!$D$2:$D$3000={"a","b"})*(Details!$I$2:$I$3000))>0,"0"&SUMPRODUCT((Details!$A$2:$A$3000="234065")*(Details!$B$2:$B$3000=A4)*(Details!$D$2:$D$3000={"a","b"})*(Details!$I$2:$I$3000)),"")

    Thank you for all your efforts!!!

  14. #14
    Registered User
    Join Date
    04-12-2013
    Location
    Cicero, NY
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Index/Match Formula - multiple criteria in one column

    Glenn,

    Your array formula worked also. As so often is the case, there's more than one way to skin an excel cat.
    Thanks again.......

    Dave

+ 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: 2
    Last Post: 09-27-2014, 04:34 PM
  2. Replies: 3
    Last Post: 06-15-2012, 04:19 PM
  3. Excel 2007 : Index Match Multiple Criteria Formula
    By paddyboy in forum Excel General
    Replies: 17
    Last Post: 03-17-2012, 12:01 AM
  4. Replies: 2
    Last Post: 01-27-2012, 01:32 PM
  5. [SOLVED] Vlookup or index/match with multiple column and criteria?
    By xirx in forum Excel General
    Replies: 2
    Last Post: 07-22-2005, 08:05 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