+ Reply to Thread
Results 1 to 4 of 4

Count Age range formula ONLY for those who attended

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016
    Posts
    17

    Smile Count Age range formula ONLY for those who attended

    Hello friends,

    Please find attached sheet.
    In my Excel, Age is calculated automatically based on their DOB. Now I need to prepare a summary of attendance based on the age group. I could use COUNTIF with range but the problem is that I need to consider ONLY those who attended (with F column value is "Y" or "y"). User enters only "y" or "Y" as attendance then automatically summary table (right side) should have the values generated based on the age range count. if F-column (Attended?) is blank or "n" or "N") then they should not be considered for the attendance report (right side).

    I entered right side table with hard coded values (numbers) to show the expected output.

    I'm using Excel 2013.

    Please help!
    Many thanks!!
    Attached Files Attached Files

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

    Re: Count Age range formula ONLY for those who attended

    Please update your profile to show your current version of Excel.

    You can use the COUNTIFS function, which accepts multiple criteria.

    To get you started:

    =COUNTIFS($F$3:$F$27,"Y",$E$3:$E$27,"<=3")

    =COUNTIFS($F$3:$F$27,"Y",$E$3:$E$27,">3",$E$3:$E$27,"<=9")
    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.

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Count Age range formula ONLY for those who attended

    Many thanks, it solved my problem

    I updated myp profile too!

    Best regards,
    Last edited by AliGW; 02-11-2018 at 02:19 PM. Reason: Unnecessary quotation removed.

  4. #4
    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,916

    Re: Count Age range formula ONLY for those who attended

    You're welcome!

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

+ 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: 06-12-2016, 12:57 AM
  2. [SOLVED] Macro to Transpose data for various Courses attended by each employee
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-27-2015, 06:46 PM
  3. [SOLVED] Return date last attended (colum header) from multiple worksheets
    By M4rk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2012, 01:21 PM
  4. Formula Count Entries in a range if another range is = 1 and Another = Monday
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-29-2011, 02:10 PM
  5. SumProduct Formula Count Entries in a range if another range is = 1
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2011, 02:13 PM
  6. [SOLVED] Count age range formula
    By cpope in forum Excel General
    Replies: 2
    Last Post: 02-11-2010, 02:34 PM
  7. Calls Attended
    By harishs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2007, 08:24 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