+ Reply to Thread
Results 1 to 6 of 6

Countif help

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    36

    Countif help

    I'm sure this is simple but just wanted to check.
    If you look at the sample I have attached I have a list of athletes with the corresponding ages and matches, win/loss, etc.
    I want to extract some data. First I want to see how many athletes are under the age of 30. I am wondering if there is a simple way to do this because I have blanks and "Age" in the B column. Do I have to do a countif for each range? Such as do I have to do a =SUM(COUNTIF(B3:B10, "<30"), COUNTIF(B14:B21, "<30")) or is there a way I can do it with a simple =COUNTIF formula?

    Also I would like to get the total amount of matches played by athletes under the age of 30 if there is a formula to extract that.

    Thanks for any help you can offer!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Countif help

    Try this doublea17:

    count number of athletes under the age of 30 =COUNTIF($B$3:$B$30,"<30")
    total amount of matches played by athletes under the age of 30 =SUMIF($B$3:$B$30,"<30",$D$3:$D$30)
    Last edited by jeversf; 08-12-2013 at 03:37 PM.
    Regards,

    jeversf

  3. #3
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Countif help

    Hi doublea17,

    Try This

    =SUM(SUMIF(B3:B10,"<30",D3:D10),SUMIF(B14:B21,"<30",D14:D21),SUMIF(B25:B30,"<30",D25:D30))

    this is for combine result
    Click on * below if you find this helpful

    Thanks,
    A

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Countif help

    Here!

    Count Athletes - =COUNTIFS(B:B,"<30",B:B,"<>""")

    Sum Matches - =SUMIF(B2:B30,"<30",D2:D30)

    Hope it helps.

    Deep
    Cheers!
    Deep Dave

  5. #5
    Registered User
    Join Date
    04-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Countif help

    I knew there was a simple solution.

    Thanks!

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Countif help

    Glad it helps!

    Deep

+ 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] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  2. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  3. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 AM
  4. [SOLVED] COUNTIF or not to COUNTIF on a range in another sheet
    By Ellie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2005, 05:06 PM
  5. [SOLVED] Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05:05 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