+ Reply to Thread
Results 1 to 3 of 3

Count number of cells with a date format that have a specific age range

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    22

    Count number of cells with a date format that have a specific age range

    Hi,

    I need a formula to count the number of cells in a table that have a specific age range e.g. 0-17. The cells all have the date of Birth in them, so I'm struggling to find a way to count among the whole group while also converting birth date to current age in a formula. The formula below didn't seem to work (for cells with an age of 25)

    =COUNTIF($E$3:$E$16,(DATEDIF($E$3:$E$16,TODAY(),"Y")=25))

    Thanks in advance!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Count number of cells with a date format that have a specific age range

    Try

    =SUMPRODUCT(--(DATEDIF($E$3:$E$16,TODAY(),"Y")=25))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Count number of cells with a date format that have a specific age range

    You are a genius. Thank you so much.

+ 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. Count number of cells with specific date and time range
    By cle12000 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-25-2013, 01:42 PM
  2. [SOLVED] Can I count the number of cells in a row that have a specific format?
    By M4rk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-09-2012, 07:26 PM
  3. [SOLVED] count number occurring within specific date range
    By Biff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2006, 01:40 PM
  4. count number occurring within specific date range
    By Ducky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2006, 01:35 PM
  5. [SOLVED] how 2 Count number of cells that have specific condition format?
    By daveydavey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-04-2005, 10:06 AM

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