+ Reply to Thread
Results 1 to 26 of 26

Index Match Match????

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Index Match Match????

    I have created a behavior chart for a few students of mine, and on All worksheet I place an X in the applicable items under the applicable date. Then on the Count Worksheet I sum the "X" for the day for each student. I have been doing this manually but it is becoming quite arduous a task now that the data has grown exponentially. Can someone please provide a formula to accomplish such with my attached workbook?Book1.xlsx

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: Index Match Match????

    This works for your test data, assuming that there is one row for each student and the order is the same:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Maybe a short term solution until you get something better


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index Match Match????

    Enter this formula into B2 and fill down and to the right.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    And which element would I need to alter to show the date of 01/02/2015?

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index Match Match????

    Enter this into B1 and fill right

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by mehmetcik; 11-11-2015 at 02:28 PM.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: Index Match Match????

    To whom are you addressing your question?

  7. #7
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    Quote Originally Posted by TMS View Post
    To whom are you addressing your question?

    Oh sorry I didn't realize I had 2 responses so promptly. It was originally addressed towards you @TMS

  8. #8
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    Quote Originally Posted by mehmetcik View Post
    Enter this formula into B2 and fill down and to the right.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This does not appear to be working properly for me. If I enter this on sheet2 B3 it returns 4 where that is not accurate. If I input it into B2 and it returns 4 which is accurate.

  9. #9
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Index Match Match????

    Hi
    Use these formula in Count!B1 and copy right
    =OFFSET(All!$B1,0,(COLUMN()-2)*7)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    see the file Book1 (12).xlsx

    Regards

  10. #10
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    Quote Originally Posted by José Augusto View Post
    Hi
    Use these formula in Count!B1 and copy right
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    see the file Attachment 429815

    Regards
    So I can understand, how does this formula work? Can you break it out for me?

  11. #11
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index Match Match????

    You must put the formula in B2 and fill it right

    The action of filling it modifies it.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    you want the formula in your second sheet to move its focus 7 columns on the all sheet with every 1 column moved on the results sheet

    so if your the first column you are putting your formula in is B ie 2

    then Column()-2 =0 then * 7 = 0


    the second column you have a formula in is C or 3
    then Column()-2 =1 then * 7 = 7


    In the first example we offset or move 0 columns to the right of B1

    In the second we move 7 columns to the right of B1

    in each case that gives us the date.
    Attached Files Attached Files
    Last edited by mehmetcik; 11-11-2015 at 03:02 PM.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: Index Match Match????

    Please see the attached example.


    Regards, TMS
    Attached Files Attached Files

  13. #13
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Index Match Match????

    Quote Originally Posted by jo15765 View Post
    So I can understand, how does this formula work? Can you break it out for me?
    Hi jo15765

    OFFSET shifts the cell reference a specified number of rows and columns to obtain a new reference cell. So we can move from [B1], 0 rows and 7 columns to have the reference to [I1] cell cell.
    COL () is the number of match cell column in which case 2. The product (COL () - 1) * 7 produces the desired displacement as when copied to the side of the column switch to C, i.e. 3, and then to D (4), ...
    Sorry for my bad English.

  14. #14
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    UGHHHH....So sorry for this mates, I just was informed the requirements for this changed. I am adding an updated workbook of the output I need it to be...TEst.xlsx

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: Index Match Match????

    Suggest you still have just one sheet to summarise the counts. Add a column for Teacher and use a VLOOKUP to populate that. Then use AutoFilter to filter on Teacher. That way, you can add whatever other criteria you want, maybe Classroom, and do the same thing.

    If you start having separate sheets for each teacher, it's going to get messy and very difficult to manage. First problem, list students in the sheet based on teacher, then adapt the formulae to use some sort of MATCH to get the row number.

    I can't help you with this. It would be a mistake, IMO, and just lead to more threads as circumstances change.

  16. #16
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index Match Match????

    Try this sample.

    I used four formulas.

    A1 =
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    B1 and fill to Right
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A2 and Fill Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    B2 and Fill Down and to the right
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    If you are allowed to use Macros then I could get rid of the blank rows for you

    Otherwise you would need to use array formulae which can get really complicated
    Attached Files Attached Files

  17. #17
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: Index Match Match????

    The formula in cell A1 is volatile. When you select a sheet and press F9 to calculate, the value will change to that of the current sheet. If you select the other sheet, it will have the last value calculated.

    Regards, TMS

  18. #18
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index Match Match????

    Try this version

    I included a small macro in the teachers sheets that forces a recalculation

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 11-11-2015 at 04:45 PM.

  19. #19
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    Quote Originally Posted by mehmetcik View Post
    Try this version
    Both worksheets show data for Teacher B?

  20. #20
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: Index Match Match????

    Please see the updated example

    Regards, TMS
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    07-30-2014
    Location
    USA
    MS-Off Ver
    Version 14.4.3, Mac 2011
    Posts
    145

    Re: Index Match Match????

    I did this a bit differently but as requested, let me know what you think.

    Only downside is that you shouldn't merge the dates, but write them on each column (not too bad of a day-to-day task).

    The rest is automatic.
    Only will do 20 students before needing to change the formulas and can read the added columns indefinitely.

    CHeers,
    Red
    Attached Files Attached Files

  22. #22
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    Quote Originally Posted by RedSummer View Post
    I did this a bit differently but as requested, let me know what you think.

    Only downside is that you shouldn't merge the dates, but write them on each column (not too bad of a day-to-day task).

    The rest is automatic.
    Only will do 20 students before needing to change the formulas and can read the added columns indefinitely.

    CHeers,
    Red

    YES YES AND YES!!!!! That is what I was needing. How can I alter to hold >20?

  23. #23
    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,253

    Re: Index Match Match????

    Try

    =IFERROR(INDEX(All!$A$3:$B$200,MATCH(0,COUNTIF($A$1:$A3,All!$A$3:$A$200)+(All!$B$3:$B$200<>$A$1),0),COLUMN(All!A3)),"")

  24. #24
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    Quote Originally Posted by JohnTopley View Post
    Try

    =IFERROR(INDEX(All!$A$3:$B$200,MATCH(0,COUNTIF($A$1:$A3,All!$A$3:$A$200)+(All!$B$3:$B$200<>$A$1),0),COLUMN(All!A3)),"")
    Will this replace the current formula in cell A2 down in worksheets 2 and 3?

  25. #25
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Index Match Match????

    Quote Originally Posted by JohnTopley View Post
    Try

    =IFERROR(INDEX(All!$A$3:$B$200,MATCH(0,COUNTIF($A$1:$A3,All!$A$3:$A$200)+(All!$B$3:$B$200<>$A$1),0),COLUMN(All!A3)),"")
    Will this replace the current formula in cell A2 down in worksheets 2 and 3?

  26. #26
    Forum Contributor
    Join Date
    07-30-2014
    Location
    USA
    MS-Off Ver
    Version 14.4.3, Mac 2011
    Posts
    145

    Re: Index Match Match????

    Yes, changing all the 20s in the formula to 200 will allow you to read down 200 rows per teacher.
    The formulas and format I made also happen to allow you to use an identical formula for both sheets so yes, this will work for 2 and 3.
    Also,
    Remember to us ctrl+shift+enter to add the {} brackets around the formula, turning it into an array formula and allowing it to work properly.
    The other formulas that count just need to be dragged down and will work no matter the amount of information you are using.

    Red

+ 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] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  2. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. [SOLVED] Index/Match/Match....Stops without completing the match
    By irsles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2012, 10:16 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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