+ Reply to Thread
Results 1 to 6 of 6

Count or Sum Number of Entries per Year

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,059

    Thumbs up Count or Sum Number of Entries per Year

    Hi,

    I have a large log between 2012 & 2013 & soon into 2014.

    I attempted to use the following functions, but neither is giving desires results. Do these functions not read dates?


    =COUNT($C$16:$C$10000,"*2013*")

    =COUNTIFS($C$16:$C$10000,"*2013*")


    =SUMIF($C$16:$C$10000,"*2012*",$C$16:$C$10000)

    Please advise & even better provide a function.

    Thanks
    Last edited by mycon73; 01-05-2014 at 10:43 AM.
    MyCon
    -- Using Latest Version of Excel

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Count or Sum Number of Entries per Year

    Hi,

    a possible function could be

    =SUMPRODUCT(--(YEAR($C$16:$C$10000)=2013))

    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Count or Sum Number of Entries per Year

    Why not use a Pivot Table and group by years?

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,059

    Re: Count or Sum Number of Entries per Year

    Hi CANAPONE,

    This is the type of simplistic function that I was seeking & works well!!!

    Thanks

    Pepe Le Mokko

    -- As for Pivot Tables - They would also work but the way that I have my log file & calculations would radically change my formats.

    Thanks

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Count or Sum Number of Entries per Year

    Hi,

    thanks for your kind feedback.

    Ciao

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

    Re: Count or Sum Number of Entries per Year

    CANAPONE's solution is ideal, however if you want to stick to the COUNT function.. try this array formula

    =COUNT(IF(YEAR($C$16:$C$10000)=2013,$C$16:$C$10000))
    or simply
    =COUNT(IF(YEAR($C$16:$C$10000)=2013,))


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    or this regular formula
    =COUNTIFS($C$16:$C$10000,">="&DATE(2013,1,1),$C$16:$C$10000,"<="&DATE(2013,12,31))
    Last edited by Ace_XL; 01-05-2014 at 03:02 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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. Formula to count the number of cells which contain a certain year
    By katieshields in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 11:22 AM
  2. Replies: 3
    Last Post: 05-29-2013, 01:57 PM
  3. [SOLVED] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM
  4. [SOLVED] How do I count number of occurrences (dates) in a rolling year?
    By ShirleyTR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2005, 02:05 PM
  5. [SOLVED] count number of months year to date
    By coal_miner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2005, 10:06 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