+ Reply to Thread
Results 1 to 14 of 14

Adding and multiple criteria into an Index

Hybrid View

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    30

    Adding and multiple criteria into an Index

    Afternoon Guys

    Having a few problems with an Index formula.

    I have a load of raw data and I want to pull each of the rows out with a certain criteria,

    =INDEX(Installer,SMALL(IF($D$3=over14,ROW(over14)-MIN(ROW(over14))+1,""),ROW(A1)))

    This formula pulls of each record that has a "1" in the over 14 array which works perfect, but I want to say:

    IF(D3=over14)and(D4=unbilled)

    (D3 and D4 are the cells with the criteria in, "over14 is the first array to look in and unbilled is the second array to look in)

    is there a way I can put this into the above formula?

    if you require an working example let me know

    thanks

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Adding and multiple criteria into an Index

    Please have an addtional 'IF' to your formation.

    =INDEX(Installer,SMALL(IF($D$3=over14,IF(d4=unbilled,ROW(over14)-MIN(ROW(over14))+1)),""),ROW(A1)))

    or attach sample file to solve it.
    Last edited by ramananhrm; 11-07-2013 at 08:54 AM.
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Adding and multiple criteria into an Index

    Hi

    that just returns an #value error

    thanks

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Adding and multiple criteria into an Index

    please disregard this post

  5. #5
    Registered User
    Join Date
    09-30-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Adding and multiple criteria into an Index

    they are named ranges

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Adding and multiple criteria into an Index

    Perhaps

    =INDEX(Installer,SMALL(IF(and($D$3=over14,$d$4=unbilled),ROW(over14)-MIN(ROW(over14))+1,""),ROW(A1)))

    committed with Ctrl+Shift+Enter

  7. #7
    Registered User
    Join Date
    09-30-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Adding and multiple criteria into an Index

    Try this for an example sheet
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Adding and multiple criteria into an Index

    Please paste this function in the cell i6

    Array:
    =INDEX($C$5:$C$9,SMALL(IF($D$5:$D$9=$I$2,IF($E$5:$E$9=$I$3,ROW($C$5:$C$9)-ROW($C$5)+1)),1))

    Non-Array (Ctrl+Shift+Enter is not required)
    =INDEX($C$5:$C$9,MATCH(LARGE(INDEX(($D$5:$D$9=$I$2)*($E$5:$E$9=$I$3)*(1/ROW($D$5:$D$9)),0),1),INDEX(($D$5:$D$9=$I$2)*($E$5:$E$9=$I$3)*(1/ROW($D$5:$D$9)),0),0))

  9. #9
    Registered User
    Join Date
    09-30-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Adding and multiple criteria into an Index

    Hi

    ramananhrm, thank you for working that out for me :-)

    it works perfectly for the first row, but then when I copy the formula down to find the next one with that criteria it doesnt find it and just returns the first one again.

    sorry to be a pain

    Thanks

  10. #10
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Adding and multiple criteria into an Index

    Please try this file.

    Rgds,
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-30-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Adding and multiple criteria into an Index

    You beautiful person!! :-) thank you very much for your help

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Adding and multiple criteria into an Index

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  13. #13
    Registered User
    Join Date
    09-30-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Adding and multiple criteria into an Index

    I dont see any stars?

  14. #14
    Registered User
    Join Date
    09-30-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Adding and multiple criteria into an Index

    doesnt matter

+ 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. Vlookup (or index/match) with multiple criteria over multiple sheets
    By Groovicles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2013, 01:56 PM
  2. Excel 2007 : Index, Match, Large Formula: Multiple Criteria, Multiple Ranges
    By SimpleJack in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2013, 08:54 AM
  3. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  4. INDEX matching multiple criteria with multiple results
    By Montanes in forum Excel General
    Replies: 4
    Last Post: 06-21-2011, 04:38 PM
  5. Replies: 8
    Last Post: 06-20-2011, 05:54 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