+ Reply to Thread
Results 1 to 4 of 4

Count the times a month/year appear in a list of data

Hybrid View

  1. #1
    Registered User
    Join Date
    10-03-2017
    Location
    Thatcham, England
    MS-Off Ver
    Office 365
    Posts
    19

    Count the times a month/year appear in a list of data

    Hi Guys,
    Ive been trying to find out how to do this, Im sure its not as hard as Im making it!
    I have a list of dates, there are 3 columns for different steps in my process.
    The columns are New, Comm & Open.
    The dates are in dd/mm/yyyy format and are from 01/01/2013.
    If the date is before 01/01/2015 in the New column I want to ignore all 3 columns, then count the number of times the month/year is listed per column.
    How do I do the with either a formula or most probably a pivot table?

    For Example some of the list is below.
    New Comm Open
    1 08/07/2013 06/10/2014 10/06/2014
    2 09/05/2016 02/02/2017 15/02/2017
    3 24/04/2017 04/10/2017 29/11/2017
    4 27/09/2013 19/03/2014 19/03/2014
    5 15/07/2014 24/06/2015 06/08/2015
    6 08/10/2014 26/03/2015 01/04/2015

    Therefore Ignore all data in row 1, 4, 5 & 6. Then for the rest count the number of Month/Year occurs in each column.
    I have about 500 rows of data.

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

    Re: Count the times a month/year appear in a list of data

    Ignore 1, 4, 5, 6 - ok
    So result should be 2 ? Because there are 2 dates in the first column, count 2 dates in the other columns too ?

    You're implying not all cells will be filled with dates - is that assumption correct ?
    If so then

    in D1
    =COUNTIFS(A1:A500,">"&datevalue("01/01/2015"))
    and copy across to F1
    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
    Registered User
    Join Date
    10-03-2017
    Location
    Thatcham, England
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Count the times a month/year appear in a list of data

    Hi Special-K,
    Thanks for replying.
    The formula you gave only counts the number of dates after 01/01/2015, what I need is to count the number of times all of the months are listed, so how many times is Jan2015, Feb 2015, Mar2015 etc etc etc listed.
    Regards,
    CliffyBiro

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,882

    Re: Count the times a month/year appear in a list of data

    Assuming I understand the setup correctly, the proposed solution does what you want.
    Added a column (D) which is populated using: =IF(A2>--"01/01/2015",1,0)
    E1 is populated using: =EOMONTH(AGGREGATE(15,6,(A2:C7)/(D2:D7=1),1),-1)+1
    F1:X1 are populated using: =DATE(YEAR(E1),MONTH(E1)+1,1)
    E2:X2 are populated using: =SUMPRODUCT(($D2:$D7=1)*($A2:$C7>=E1)*($A2:$C7< DATE(YEAR(E1),MONTH(E1)+1,1)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 1
    Last Post: 03-13-2017, 10:13 AM
  2. Column chart, one data column of dates: count of month & year
    By brucemc777 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-11-2016, 12:49 PM
  3. [SOLVED] Count and Sum for the given month and year
    By Sekars in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-20-2016, 09:50 PM
  4. Calculating the number of times a value appears based on Month and Year
    By achimbos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2015, 06:58 PM
  5. Pulling data from list into month/year table
    By EC11 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-17-2013, 02:45 PM
  6. [SOLVED] how to return a day(number) by selecting month and year from data list
    By lizsantiago07 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-24-2012, 02:43 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