+ Reply to Thread
Results 1 to 2 of 2

Counting number of occurences specific date in range of cells in a table

  1. #1
    Registered User
    Join Date
    07-01-2005
    Posts
    10

    Counting number of occurences specific date in range of cells in a table

    I have a table set-up to track data. Cells A3:A59 contain a date (formatted like January 17, 1994). I need to calculate number of times the word of each month occurs in those cells (i.e. January, February, etc)
    I have the date in each cell and am already counting the number of occurences each year shows up, but can't get the month to count.
    Is it because it's in a table? I have tried using several formulas.
    Here's one example.
    =COUNTIF(A3:A59,"*january*")

    Cell A3 contains ='Description Log'!A2 which is January 17, 1994.

    It is not counting the number of times january shows up. I want the data in order by year, so it's not good sorting by month.


    Any ideas what is wrong or how I can count this correctly?

    Thanks,
    Jzzman
    You guys r awesome!

    JZZMAN

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Counting number of occurences specific date in range of cells in a table

    The word "January" is most likely NOT the value in that cell, it's probably 34351, the Excel numeric value for that date. Most likely, the cells are simply formatted to display the verbiage. It's not really there.

    To count how many times "January" is in the table, do a:

    =SUMPRODUCT(--(MONTH(A3:A59)=1))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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