+ Reply to Thread
Results 1 to 6 of 6

MATCH/INDEX IF question

  1. #1
    Registered User
    Join Date
    08-03-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    18

    MATCH/INDEX IF question

    Hi all,

    I'll keep it simple...

    {=INDEX($A$1:$N$317,SMALL(IF($E$1:$E$317="BURSTING",ROW($E$1:$E$317)),ROW(1:1)),1)}

    This brings me my first instance of a row containing "BURSTING" from column E.

    How do I manipulate the formula to search for THREE things? For example, I need to retrieve the first instance of a row containing EITHER "BURSTING", "FOLDING" OR "INSERTING" from column E. And basically each line underneath will bring me the second instance, the third instance etc. by using the (2:2) (3:3) (4:4) and so on.

    Hope you can help, thanks.

    Lee.
    Last edited by lee4clp; 08-07-2010 at 03:12 PM.

  2. #2
    Registered User
    Join Date
    08-03-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: MATCH/INDEX IF question

    I tried the following but it didn't work...

    {=INDEX($A$1:$N$317,SMALL(IF(OR($E$1:$E$317="BURSTING","FOLDING","INSERTING"),ROW($E$1:$E$317)),ROW(1:1)),1)}

    Left me with a VALUE# thingy.

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: MATCH/INDEX IF question

    U cannot use OR function within array formulae. It's common rule. You should use "+" (plus sign) instead. When you use "+" that's mean Either... Or... construction. But when multiply this would mean And construction..
    Try
    =INDEX($A$1:$N$317,SMALL(IF(($E$1:$E$317="BURSTING")+($E$1:$E$317="FOLDING")+($E$1:$E$317="INSERTING"),ROW($E$1:$E$317)),ROW( 1:1)),1)
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Registered User
    Join Date
    08-03-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: MATCH/INDEX IF question

    That did the trick, thank you so much!

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: MATCH/INDEX IF question

    Quote Originally Posted by contiminated
    U cannot use OR function within array formulae. It's common rule. You should use "+" (plus sign) instead.
    Whilst the above is true you may find that if you have lots of mutually exclusive conditions it is simpler to use an ISNUMBER MATCH test (shorter syntax and easier to adapt the criteria)

    Please Login or Register  to view this content.

  6. #6
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: MATCH/INDEX IF question

    That's the trick Donkey... that's the trick...!!!! Really haven't seen this kind of syntax before...
    Last edited by contaminated; 08-07-2010 at 11:35 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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