+ Reply to Thread
Results 1 to 13 of 13

Finding a row and column match with a list and return a specific value

  1. #1
    Registered User
    Join Date
    12-16-2022
    Location
    Paris, France
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Question Finding a row and column match with a list and return a specific value

    Hello all,
    I am having a hard time finding a formula to solve the following problem:
    Teachers take attendance at the beginning of their class, but some students are exempted from certain classes because they have already completed that course or for other reasons. Yet, they may be wrongly counted as absent as teachers are unaware of their particular situations.
    I'd like to find a formula to be included in the attendance register that searches for matches between the list of students, the class of the day, and the students and classes in the exemption table. If there is a match, it would return a specific text like "Exempted" and leave the cells empty otherwise. This way, if the teacher enters the class name in the sheet, they can see who is not expected to attend that particular class.
    I've tried a combination of iferror and index/match or vlookup, but nothing has worked.
    Thank you very much for your help; I'd be forever grateful!!
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Finding a row and column match with a list and return a specific value

    One way:

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

  3. #3
    Registered User
    Join Date
    12-16-2022
    Location
    Paris, France
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Finding a row and column match with a list and return a specific value

    Thank you very much for your help, but the formula you propose is used in the exemption table instead of the attendance table. I may not have been clear enough in describing my problem: I would like the formula to help complete the attendance table, indicating right away when the "class" cell is filled, what students are exempted (if any), based on the information from the exemption table. That way, when teachers start calling the roll, they do not mark a student who is actually exempted as absent.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Finding a row and column match with a list and return a specific value

    Please add a sample what the formula exactly should produce.

  5. #5
    Registered User
    Join Date
    12-16-2022
    Location
    Paris, France
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Finding a row and column match with a list and return a specific value

    The result is just the attendance table I attached with exempted students marked as "Exempted" automatically for each class when that's the case. I'm not sure how I can make myself clearer apart from explaining the steps. So, the exemption table is built by a university's administration based on their information on the students (repeaters, specific pathways, etc.). However, the teachers are not necessarily aware of those exemptions because there are actually hundreds of students and they don't deal with administrative aspects. Every time a teacher comes to provide a class, they have to call roll with a "raw" list of students that does not differentiate between those who are supposed to attend their class and those who don't.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Finding a row and column match with a list and return a specific value

    I would like the formula to help complete the attendance table, indicating right away when the "class" cell is filled, what students are exempted (if any), based on the information from the exemption table.
    Doesn't the formula do that?
    Would you please indicate exactly what the formula did not do correctly?

    I see 2 differences:
    The Geography column is empty, therefore it does not appear in the formula result.
    And the last 2 have been swapped. If a different sorting is desired, please indicate how to sort.
    Attached Files Attached Files

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

    Re: Finding a row and column match with a list and return a specific value

    I am baffled. Where do Present and Absent come from??

    Delete EVERYTHING between D2 and G12. In D2:

    =IF(ISNUMBER(MATCH($A4:$A12&$B4:$B12&D$2:G$2,I3:I8&J3:J8&K3:K8,0)),"Exempted","")

    maybe....
    Attached Files Attached Files
    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

  8. #8
    Registered User
    Join Date
    12-16-2022
    Location
    Paris, France
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Finding a row and column match with a list and return a specific value

    If I understand well the formula, it "extracted" the information from the attendance table to build an exemption table. I want the exact opposite: start from the exemption table (which is built by the administration) and indicate from there in the attendance table (filled by the teachers) those students concerned by exemptions depending on the classes that will be provided day after day. So, when that geography teacher puts "geography", it will display automatically "Exempted" in the corresponding lines of students. Otherwise, it will leave the cells empty, and will be filled manually by the teachers with "Present" or "Absent". Hope that makes sense now.

  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 2406
    Posts
    44,662

    Re: Finding a row and column match with a list and return a specific value

    If that IS what you want... the $ are redundant:

    =IF(ISNUMBER(MATCH(A4:A12&B4:B12&D2:G2,I3:I8&J3:J8&K3:K8,0)),"Exempted","")

    If that is NOT what you want.... make it SOOOO OBVIOUS on your sample file WHERE the expected results actually are!! HD and I have interpreted your words in entirely different ways!

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

    Re: Finding a row and column match with a list and return a specific value

    Ignore my last two posts. Utter nonsense. If my interpretation is correct: in D2, copied across and dnown:

    =IF(ISNUMBER(MATCH($A4&$B4&D$2,$I$3:$I$8&$J$3:$J$8&$K$3:$K$8,0)),"Exempt","")

    Now you can overtype Present/Absent in the rest of the Table. HOWEVER, you will need to re-enter the formual in all cells every week.
    Attached Files Attached Files

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

    Re: Finding a row and column match with a list and return a specific value

    Who were you talking to at Post 8? If me... go to Post 10. I got it wrong...

  12. #12
    Registered User
    Join Date
    12-16-2022
    Location
    Paris, France
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Finding a row and column match with a list and return a specific value

    Quote Originally Posted by Glenn Kennedy View Post
    Who were you talking to at Post 8? If me... go to Post 10. I got it wrong...
    I was replying to HD. Your last formula is exactly what I was looking for! Thank you very much to both of you!!!

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

    Re: Finding a row and column match with a list and return a specific value

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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: 4
    Last Post: 10-10-2022, 03:44 AM
  2. Replies: 7
    Last Post: 10-14-2020, 12:05 PM
  3. [SOLVED] Finding intersection value of specific row and column that match a certain value
    By Nikox9 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2016, 02:48 AM
  4. [SOLVED] Finding a specific text string throughout an entire column and if there return true/false
    By myfivemonkeys in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2015, 07:31 PM
  5. Formula to match a cell with value in a column and return a specific value
    By code_excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2014, 12:50 AM
  6. [SOLVED] return a specific row of a column in an array which contains the value match
    By macduff98 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-23-2012, 06:50 PM
  7. Replies: 3
    Last Post: 08-05-2009, 03:45 PM

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