+ Reply to Thread
Results 1 to 7 of 7

COUNTIF problem

  1. #1
    Registered User
    Join Date
    04-12-2016
    Location
    Kildare, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    4

    COUNTIF problem

    Hello,

    I cant quite figure this out...

    I have a table that has Column A "Date of birth", Then for each milestone at Column B, C, D

    I want to count the number of people based on year of birth that have achieved all 3 milestones in B, C, and D only (column B, C and D all have dates if completed, and I don't want to count the blanks or N/A's)

    I've used =COUNTIFS(Sheet1!A:A,">=1/1/2014",Sheet1!A:A,"<=31/12/2014") to get only those born in 2014 but how do I go about the rest?

    Thanks for your help!
    Last edited by CiaraJ; 04-15-2016 at 11:57 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: COUNTIF problem

    Attach a sample spreadsheet with expected results, remove any sensitive data.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    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,273

    Re: COUNTIF problem

    Please post a small file (not image) showing expected outcomes

    To upload file click "Go Advanced" then "Mange Attachments")

    Try

    =COUNTIFS(Sheet1!A:A,">=1/1/2014",Sheet1!A:A,"<=31/12/2014",Sheet1!B;B,'=M1',Sheet1!C:C,'"=M2',Sheet1D:D,'=M3')

    where M1 etc. ate the milestones

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: COUNTIF problem

    Try

    =COUNTIFS(Sheet1!A:A,">=1/1/2014",Sheet1!A:A,"<=31/12/2014",Sheet1!B:B,">0",Sheet1!C:C,">0",Sheet1!D:D,">0")

    edited to correct typo and remove some stupid I forgot that using ">0" doesn't count text in countif.
    Last edited by jason.b75; 04-15-2016 at 11:25 AM.

  5. #5
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: COUNTIF problem

    Split the task up, add some helper columns.

    One column for the DOB Year, and another column to COUNT the number of values (dates) entered in B-D.

    Then you can use a simple COUNTIFS over both these columns.
    Last edited by EchoPassenger; 04-15-2016 at 11:42 AM.

  6. #6
    Registered User
    Join Date
    04-12-2016
    Location
    Kildare, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: COUNTIF problem

    That works beautifully - thank you so much!

  7. #7
    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,273

    Re: COUNTIF problem

    Which
    works beautifully
    ????

+ 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. COUNTIF Problem
    By Laingy24 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-29-2015, 01:00 PM
  2. [SOLVED] Problem with Countif.
    By JO505 in forum Excel General
    Replies: 6
    Last Post: 04-24-2015, 12:01 AM
  3. [SOLVED] COUNTIF Problem
    By CM03486 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2013, 08:44 AM
  4. COUNTIF Problem
    By Dan Mackman in forum Excel General
    Replies: 2
    Last Post: 11-12-2008, 10:33 AM
  5. Countif problem
    By w0rksh0p in forum Excel General
    Replies: 3
    Last Post: 11-12-2006, 10:52 AM
  6. countif problem
    By SLKPM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2005, 04:05 PM
  7. [SOLVED] Countif problem
    By David Cleland in forum Excel General
    Replies: 4
    Last Post: 08-23-2005, 07:05 PM

Tags for this Thread

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