+ Reply to Thread
Results 1 to 16 of 16

Formula For Individuals Attending Events

  1. #1
    Registered User
    Join Date
    04-16-2016
    Location
    Savannah, GA
    MS-Off Ver
    2016
    Posts
    6

    Formula For Individuals Attending Events

    Hi all. I have a spreadsheet for events that our church hosts throughout the year. I have our individual ladies' names in it and them create a new column for each event and record a 1 in that column if they attend. Each column totals how many attend each event and each row totals how many events each have attended.
    I am looking for a formula that will total how many unique individuals have attended all events thoughout the year.
    Example:

    Name. Event 1. Event 2. Event 3. Total
    Ann Smith. 1. 1. 2
    Jane Jones. 1. 1
    Sally Martin 0
    Beth Andrews. 1 1. 1. 1

    Total. 2. 3. 1.

    Need a formula that, in the above case, would tell me that 3 individuals have attended events this year.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Formula For Individuals Attending Events

    Use COUNTIF to see how many have > 0 in the total column

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Formula For Individuals Attending Events

    Try

    =COUNTIF(E2:E5,"<>0")

    where the range is your totals.

  4. #4
    Registered User
    Join Date
    04-16-2016
    Location
    Savannah, GA
    MS-Off Ver
    2016
    Posts
    6

    Re: Formula For Individuals Attending Events

    Thanks pfwhitfield. I've tried that and it just gives me a 0. Not sure if the issue is the fact that the numbers in column I'm referencing are formula derived, i.e. - the actual value for each cell is a formula and not just a number?

  5. #5
    Registered User
    Join Date
    04-16-2016
    Location
    Savannah, GA
    MS-Off Ver
    2016
    Posts
    6

    Re: Formula For Individuals Attending Events

    Thanks mrice. That gives me the total number of names that I have but does not exclude 0s.

  6. #6
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Formula For Individuals Attending Events

    That shouldnt have any impact at all, your total column is in E isnt it? or youve changed the formula to the correct column?

    Can you upload your workbook?

  7. #7
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Formula For Individuals Attending Events

    Quote Originally Posted by Hyperdog882 View Post
    Thanks mrice. That gives me the total number of names that I have but does not exclude 0s.
    Not sure whats happening there like as both mine and Mrice formulas were the same other than his used a smaller range. Both should have given same result for the data you supplied

  8. #8
    Registered User
    Join Date
    04-16-2016
    Location
    Savannah, GA
    MS-Off Ver
    2016
    Posts
    6
    Quote Originally Posted by pjwhitfield View Post
    Not sure whats happening there like as both mine and Mrice formulas were the same other than his used a smaller range. Both should have given same result for the data you supplied
    Strange. I've attached my spreadsheet (Hopefully).
    Attached Files Attached Files

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

    Re: Formula For Individuals Attending Events

    Try this in R5 and fill / copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Insert new columns to the right of column Q, enter the new data. The formula columns will move and the formula range will expand as you add new columns.

    Edit Also in row 183 totals this formula in D183 copy and paste to the remaining cells to the right.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and for the COUNTIF formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by FlameRetired; 04-16-2016 at 04:36 PM.
    Dave

  10. #10
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Formula For Individuals Attending Events

    Quote Originally Posted by FlameRetired View Post
    Try this in R5 and fill / copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Insert new columns to the right of column Q, enter the new data. The formula columns will move and the formula range will expand as you add new columns.

    Edit Also in row 183 totals this formula in D183 copy and paste to the remaining cells to the right.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and for the COUNTIF formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Im with the OP here though, that still gives the incorrect answer of the full number of people rather than those that had attended

  11. #11
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Formula For Individuals Attending Events

    Theres something strange about your workbook, its definitely not calculating as it should.

    Heres what should happen.
    Attached Files Attached Files

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: Formula For Individuals Attending Events

    Quote Originally Posted by pjwhitfield View Post
    Im with the OP here though, that still gives the incorrect answer of the full number of people rather than those that had attended
    OK. I don't seem to be getting the concept. I've been solving the wrong problems.

  13. #13
    Registered User
    Join Date
    04-16-2016
    Location
    Savannah, GA
    MS-Off Ver
    2016
    Posts
    6

    Re: Formula For Individuals Attending Events

    Ok, well at least I know that it's not just me! Leave it to me to have a malfunctioning workbook! I guess I will just continue manually counting them unless someone else has any suggestions. Thanks for trying!

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: Formula For Individuals Attending Events

    I am looking for a formula that will total how many unique individuals have attended all events thoughout the year.
    You have a COUNTIF formula in A186. Try replacing that with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The answer is 2.

    Unless there exists a count of all events =7 and there is no name associated with it (i.e. blank cell in column A) the $A$4:$A$181,"<>" part is unnecessary.

    Is this what you were looking for?

    Edit An afterthought: On the question of "unique individuals" ... if there is a chance that an individual with 100% attendance is listed more than once perhaps this formula would be what you want.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 04-17-2016 at 01:00 AM.

  15. #15
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Formula For Individuals Attending Events

    FlameRetired - a simple COUNTIF should do it though, theres a total column that says how many times a user has attended an event (R in the sheet I believe), that column is a simple SUM(C1:P1) formula so it gets answers such as 2, 5, 0, 1 etc

    Therefore to see how many people have attended events you should simply need to count the number of items in that column which are > 0

    It shouldnt need anything more than that and the COUNTIF should easily work on a simple column such as that.

    The issue lies with something else in the workbook

    EDIT: Ive just opened it again and amended A186 to

    Please Login or Register  to view this content.
    and it worked


    ps the answer is 136 not 135
    Last edited by pjwhitfield; 04-17-2016 at 07:26 AM.

  16. #16
    Registered User
    Join Date
    04-16-2016
    Location
    Savannah, GA
    MS-Off Ver
    2016
    Posts
    6
    Quote Originally Posted by pjwhitfield View Post
    FlameRetired - a simple COUNTIF should do it though, theres a total column that says how many times a user has attended an event (R in the sheet I believe), that column is a simple SUM(C1:P1) formula so it gets answers such as 2, 5, 0, 1 etc

    Therefore to see how many people have attended events you should simply need to count the number of items in that column which are > 0

    It shouldnt need anything more than that and the COUNTIF should easily work on a simple column such as that.

    The issue lies with something else in the workbook

    EDIT: Ive just opened it again and amended A186 to

    Please Login or Register  to view this content.
    and it worked


    ps the answer is 136 not 135

    Thanks again for working on this pjwhitfield. I literally just copied and pasted your formula onto my spreadsheet and it still gives me a 0. No clue why - I think this spreadsheet just hates me!
    And I stand corrected on the 136.

+ 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: 2
    Last Post: 12-24-2015, 02:30 PM
  2. Formula for individuals to view their hours.
    By samuelleach in forum Excel General
    Replies: 2
    Last Post: 07-17-2015, 01:30 PM
  3. Report list of people attending
    By Honeyfoot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2014, 10:58 AM
  4. [SOLVED] Excel - looking for subject and copying attending student
    By Bryony309 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-27-2014, 08:03 AM
  5. [SOLVED] Formula for how many from each of the three departments are attending
    By gdub72 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2013, 08:15 AM
  6. Replies: 4
    Last Post: 05-31-2006, 03:50 PM
  7. Calculate Number Attending
    By Michael Koerner in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2005, 02:06 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