+ Reply to Thread
Results 1 to 3 of 3

Countif

  1. #1
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Countif

    Hi All,

    I have a column "A" of dates in the typical xx/xx/xxxx format. Then I have column "B" of years in the xxxx format.

    I want to apply a countif formula in column "C" that counts up all the occurrences in column A that matches the year in column B.

    For example:

    column A has: 05/01/2013, 8/01/2013, 12/12/2013, 1/01/2014, 1/03/2014
    column B has: 2013
    Column C (the countif formula) has: 3 (counted all the 2013 occurrences in column A)

    How do I write that countif formula? Thank You,

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Countif

    Hi,

    One way would be to use a helper column, say column D. In D1 enter

    Please Login or Register  to view this content.
    and copy this down. Now with your date of 2013 in B1, in C1 use:

    Please Login or Register  to view this content.
    HTH
    Last edited by Richard Buttrey; 10-29-2009 at 01:40 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Countif

    Richard,

    thank You. That worked perfectly!

+ 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