+ Reply to Thread
Results 1 to 5 of 5

Pull every instance INDEX/MATCH criteria into consecutive rows

  1. #1
    Registered User
    Join Date
    06-22-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Pull every instance INDEX/MATCH criteria into consecutive rows

    I'm trying to fix a report that I created but can't seem to figure out a way to display the information for a single student.

    I've attached a mock report up so that maybe it would make more sense.

    So the first tab, 'DIR', I managed to find a way to pull up only the information for a single student that was selected in the drop-down D1 cell. For that I used a simple INDEX/MATCH combo. The student's name would only appear once in the 'Paste DIR' tab, so it was fairly simple to create these formulas.

    Now for the 'Paste Outreach' tab, a student appears multiple times in the chunk of information. Right now, the way that I have the report is so that it would just pull the information from each row, regardless of the student. What I would like to do is find a formula similar to INDEX/MATCH, but find every instance when the criteria is met for the INDEX/MATCH. I would like to be able to log each instance a student has an Outreach log entered. Then if I switch the student selected in D1 of the DIR tab, then it would only populate their Outreach Logs.

    So if Student Name & Outreach # matches D1 ('DIR' tab) & "90" in "Paste Outreach, then pull row info into rows 7-11 in Outreach.
    Find the next instance Name & # matches, and pull that into rows 12-16, etc.


    I tried to explain as best as I could, but hopefully someone understood that big jumble I've written up and could help. Any help would be greatly appreciated. Thanks!
    Attached Files Attached Files
    Last edited by PowerSchoolDude; 01-13-2010 at 06:43 PM.

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

    Re: Pull every instance INDEX/MATCH criteria into consecutive rows

    PSD, I have had a quick look and though I'm sure you can streamline the DIR sheet I will concern myself only with Outreach sheet for now.

    You make mention of Outreach No. as criteria for search yet I find no immediately obvious location where this criteria is set on Dir sheet so I am ignoring this and matching on name basis only for time being.

    To avoid "expensive" formulae the best thing to do is to create a key on Paste Schedule sheet related to each value in Column A, eg:

    If we assume data is not always sorted by Column A then

    Please Login or Register  to view this content.
    You can use this key on the Outreach sheet to avoid Arrays...

    Next thing to do on Outreach sheet would be to create some cells to hold various values which would allow us to avoid repetitive / needless calculations in the main report:

    Please Login or Register  to view this content.
    Remaining formulae become:

    Please Login or Register  to view this content.
    point of the above being to use one formula for all cells in same column - should ease burden of maintenance.

  3. #3
    Registered User
    Join Date
    06-22-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Pull every instance INDEX/MATCH criteria into consecutive rows

    Thank you so much! it actually worked great.

    I was playing around with it a bit and was trying to see if I can adjust the formula in the first box so that I can have it Count if A2 (the name) appears but also if it has a specific code. The outreach # is a way to seperate different types of logs in this report. In my workbook "90' indicates an outreach log, "92" indicates an intervention log. I have created an 'Intervention' tab similar to the 'Outreach' one (hidden in the workbook), but has completely different information on it.

    So essentially what I would like to be to do is to seperate each row by student, but as well by the type of log. Would that be possible? This formula is amazing when I only have outreach logs, but I also have the intervention ones that would not fit in the 'Outreach' tab, but they do in the 'Intervention' tab.

    I hope this makes sense. This formula alone you have provided has helped sooo much and I'm sure it's going to make many happy that this report is easier to run. Thanks!

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

    Re: Pull every instance INDEX/MATCH criteria into consecutive rows

    You can easily adapt this such that the key is based on both name & outreach however per my note I could not see where you were setting this 2nd value on the DIR sheet ?

    In terms of how... given use of XL2007 the simplest solution is to use COUNTIFS rather than COUNTIF, eg:

    Please Login or Register  to view this content.
    Then simply modify Outreach sheet such that:

    Please Login or Register  to view this content.
    all other formulae remain as they are.

  5. #5
    Registered User
    Join Date
    06-22-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Pull every instance INDEX/MATCH criteria into consecutive rows

    I played around with it and it worked out perfectly!

    You have no idea how much time everyone is going to save with this simple formula you've given me. Thank you so so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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