+ Reply to Thread
Results 1 to 13 of 13

Check who owns 13 pens

  1. #1
    Registered User
    Join Date
    07-19-2022
    Location
    India
    MS-Off Ver
    2019
    Posts
    16

    Check who owns 13 pens

    Hi I want to check which student owns 13 pens. I think it will be done using offset and match function but I am not able to use them properly.
    Attached Files Attached Files
    Last edited by learning_bee; 07-22-2022 at 08:28 AM.

  2. #2
    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,410

    Re: Check who owns 13 pens

    And expected results are ?? Confused by column H entries !
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,810

    Re: Check who owns 13 pens

    you have a student name
    and then number of red and number of blue pens
    why would they also have a number of
    Does not own pen

    i dont really understand your layout

    example
    Students name | Red Pen | Blue Pen | Does not own pen
    XYZ | 25 | 3 |12

    none add up to 13

    so i'm a little confused
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    07-19-2022
    Location
    India
    MS-Off Ver
    2019
    Posts
    16

    Re: Check who owns 13 pens

    Hey I have deleted that column.. Actually some other questions were there related to that column. Now can you tell me how can we do it?

  5. #5
    Registered User
    Join Date
    07-19-2022
    Location
    India
    MS-Off Ver
    2019
    Posts
    16

    Re: Check who owns 13 pens

    I have deleted that column. The result should be that student name who has total 13 pens(red+blue).

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

    Re: Check who owns 13 pens

    One way:

    Use condtional formatting on cell E5 (and down): with conditional formula =(F5+G5=13)
    See attachment.

    Is this what you want?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-19-2022
    Location
    India
    MS-Off Ver
    2019
    Posts
    16

    Re: Check who owns 13 pens

    No.. I want the result in a new cell.

  8. #8
    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,410

    Re: Check who owns 13 pens

    This ??

    in H5

    =IF(SUM(F5:G5)=13,"Yes","No")

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,810

    Re: Check who owns 13 pens

    =index(e5:e9,match(13,f5:f9+g5:g9,0))


    if 2 people have 13 - it will only return the 1st one
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-19-2022
    Location
    India
    MS-Off Ver
    2019
    Posts
    16

    Re: Check who owns 13 pens

    It is giving #N\A error.

  11. #11
    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,410

    Re: Check who owns 13 pens

    Try for multiple entries

    =IFERROR(INDEX($E$5:$E$9,AGGREGATE(15,6,ROW($A$1:$A$100)/(($F$5:$F$9+$G$5:$G$9=13)),ROWS($1:1))),"")

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

    Re: Check who owns 13 pens

    An other way (for users Excel 365 or Excel 2021):

    Adding a new total colomn in column H and using the FILTER function: =FILTER(E5:H9;H5:H9=13;"No students").
    It shows all students with exact 13 pens.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-19-2022
    Location
    India
    MS-Off Ver
    2019
    Posts
    16

    Re: Check who owns 13 pens

    This formula worked:

    =INDEX(E$5:E$9,MATCH(TRUE,INDEX(($F$5:$F$9+$G$5:$G$9=13),0),0))

+ 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] Check for repetition and check for first 100 words and check for first sentence
    By Asdf99 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 06-30-2022, 02:32 AM
  2. [SOLVED] Who owns a project I hired help for?
    By BDD2015 in forum Excel General
    Replies: 3
    Last Post: 06-05-2016, 12:14 AM
  3. How to check if excel file is Checked Out in SharePoing Check Out, run code, Check In
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2016, 04:36 PM
  4. Who owns/runs this forum
    By Tony Valko in forum The Water Cooler
    Replies: 7
    Last Post: 10-15-2015, 11:47 AM
  5. Who owns this forum/site?
    By Tony Valko in forum The Water Cooler
    Replies: 15
    Last Post: 02-28-2014, 12:10 AM
  6. Automatically check one or more check boxes when a parent check box is manually checked
    By Steverizer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2013, 01:56 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