+ Reply to Thread
Results 1 to 9 of 9

Multiple Counting

  1. #1
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Multiple Counting

    Hi folks,

    I have an intellectually simple, but nonetheless demanding question regarding an Excel-formula to count "questions" (see attached sheet for reference).
    In the example I have five different subjects (A to E). There is a list of questions (A2:A28). Questions relate to the different subjects. E.g., Q1 is relevant for each subject.
    This is the basis.

    Now we have persons, that can chose subjects. In the example, person A has chosen subjects A and C, person B has chosen A and B and so on.

    Since certain questions are identical between the different subjects, a person just needs to answer "unique questions". This means, that if e.g., person A has answered question 1 because it is included in subject A, he/she doen't have to answer it again in subject C.

    Therefore the different persons have to answer a sum X questions, which I have counted manually now (cells N2:N5).
    I am looking for an easy formula to automatically count the number of questions a person has to answer based on the subjects it has chosen.

    Thanks a lot in advance for any input.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    371

    Re: Multiple Counting

    I am not very good with array formulas so I am not confident that this is the best solution in terms of efficiency and expandability, but the following works:

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


    You will need to press CTRL + SHIFT + ENTER when editing the formula to tell Excel that it is an array formula, confirmed by curly braces {} wrapping the whole formula.
    Design everything to be as simple as possible, but no simpler.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,790

    Re: Multiple Counting

    Could you please explain the sample file? Which bits relate to people and which bits relate to subjects? How have you arrived at the numbers in column N?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    06-29-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    24

    Re: Multiple Counting

    i would suggest rearranging your data to make it more intuitive, but here is one way... not quick though. With this you can put X's in the table to change the aswers
    Attached Files Attached Files

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Multiple Counting

    Cunner how do you come up with 22 in cell N4? I come up with 18.66666667. All other numbers agree using either of these formulas in N2 and filling down.

    This one is an array formula.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or you could also use this non array entered formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 08-21-2017 at 11:00 PM. Reason: Edited last formula -- made simpler
    Dave

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Multiple Counting

    With this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I get
    18
    20
    22
    20

  7. #7
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Multiple Counting

    @FlameRetired: perfect, the formula seems to work. I must have miscounted myself and double checked. The formula's results are fine.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,790

    Re: Multiple Counting

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Multiple Counting

    @ Cunner

    Good to hear. Thank you for the feedback.

+ 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. Formula for Counting Multiple Words in Multiple Ranges
    By billdigo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2015, 06:11 PM
  2. Formula for Counting Multiple Ranges and Multiple Criteria
    By musicman1985 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-29-2014, 05:43 AM
  3. Replies: 12
    Last Post: 02-10-2014, 11:59 AM
  4. Counting with multiple criterias across multiple sheets
    By k.m. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2013, 03:40 PM
  5. [SOLVED] Counting multiple items with multiple criteria from multiple sheets?
    By essee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2013, 01:56 AM
  6. Counting Cells With Multiple Criteria on Multiple Sheets
    By ericmeiers in forum Excel General
    Replies: 5
    Last Post: 08-04-2012, 10:23 PM
  7. Replies: 3
    Last Post: 03-01-2012, 06:17 AM

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