+ Reply to Thread
Results 1 to 5 of 5

Count if text and month/year matches

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    41

    Red face Count if text and month/year matches

    Hi,

    I have a simple table below. But I couldn't figure out how to count the number of "Speaker" that was old in "Apr-15" .... Answer should be 4
    And i could not do a pivot table with column label as "Month/Year", it just picks up multiples dates that falls under the same month. Sample excel as attached. Appreciate if anyone can help. Thank you


    Mkt Date Month/Year
    Speaker 4/1/2015 Apr-15
    Speaker 1/1/2015 Jan-15
    Speaker 4/30/2015 Apr-15
    Speaker 4/15/2015 Apr-15
    Speaker 1/17/2015 Jan-15
    Speaker 1/9/2015 Jan-15
    Speaker 3/10/2015 Mar-15
    Speaker 3/19/2015 Mar-15
    Speaker 1/30/2015 Jan-15
    Speaker 5/14/2015 May-15
    Speaker 6/10/2015 Jun-15
    Speaker 4/11/2015 Apr-15
    Speaker 6/22/2015 Jun-15
    Speaker 7/11/2015 Jul-15


    Rdgs
    Rachel
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count if text and month/year matches

    Please see attached file.

    change Phone to Phones in F3
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Count if text and month/year matches

    Put this formula in G2:

    =SUMPRODUCT(($A$2:$A$20="Speaker")*(TEXT($B$2:$B$20,"mmm-yy")=TEXT(G$1,"mmm-yy")))

    and copy across to L2.

    Hope this helps.

    Pete

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Count if text and month/year matches

    Try this in G2 and filled down/right

    =COUNTIFS($A$2:$A$20,$F2,$B$2:$B$20,">="&G$1,$B$2:$B$20,"<="&EOMONTH(G$1,0))

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Count if text and month/year matches

    Also,

    If you change your formula in column C to
    =TEXT(B2,"mmm-yy")

    Then your pivot table will work as expected.

+ 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] Count cell only if date matches current month & year
    By SadOfficeWorker in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-14-2016, 02:51 AM
  2. Count occurrances in month and year given certain criteria?
    By Tarheel8181 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2014, 10:03 PM
  3. Replies: 4
    Last Post: 12-10-2013, 06:41 PM
  4. [SOLVED] Count Items According to Month and Year
    By yellowsnow4free in forum Excel General
    Replies: 5
    Last Post: 05-21-2012, 04:26 PM
  5. [SOLVED] Is it possible to count the day of Month/Year?
    By Joe in forum Excel General
    Replies: 1
    Last Post: 03-18-2006, 05:20 AM
  6. count dates within range by year and month
    By Isaiah25 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-04-2005, 06:06 PM
  7. Get count of records for a particular month and year
    By maxtrixx in forum Excel General
    Replies: 5
    Last Post: 04-08-2005, 03:06 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