+ Reply to Thread
Results 1 to 3 of 3

Counting date rows by month

  1. #1
    Registered User
    Join Date
    05-18-2021
    Location
    Scotland
    MS-Off Ver
    2007
    Posts
    12

    Counting date rows by month

    Hi,

    I'm hoping someone can help me. I'm looking for a formula (replacing the red text in column C) that incrementally counts the number of rows in each month. When the month number changes in Column B the count must reset to 1 and increment accordingly before the next month change, and so on.

    Any help would be gratefully appreciated.

    Many thanks!
    Mark.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,514

    Re: Counting date rows by month

    I usually use an IF() function for this sort of thing:

    1) C2 will always be 1, so enter 1 in C2.
    2a) Test if month number for row 3 is the same as row 2 B3=B2
    2b) If month number is the same, increment count C2+1
    2c) If month number is not the same, reset count to 1
    2d) Final IF() formula =IF(B3=B2,C2+1,1) entered in C3 and copied/pasted/filled down.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    05-18-2021
    Location
    Scotland
    MS-Off Ver
    2007
    Posts
    12

    Re: Counting date rows by month

    Fantastic! Many, many thanks MrShorty :-)

+ 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. Counting by date. Month and Year
    By quickheart in forum Excel General
    Replies: 3
    Last Post: 06-30-2017, 05:06 PM
  2. [SOLVED] problem counting rows in a Month
    By Giro17 in forum Excel General
    Replies: 4
    Last Post: 12-28-2016, 10:08 AM
  3. [SOLVED] Counting & summing value based on date/month
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-03-2014, 02:32 AM
  4. Replies: 6
    Last Post: 03-03-2013, 01:41 AM
  5. [SOLVED] Excel 2007 : Counting date in specific month by month
    By adisakman in forum Excel General
    Replies: 8
    Last Post: 06-14-2012, 06:30 AM
  6. Counting Rows based on Month & Year
    By ExcellantA in forum Excel General
    Replies: 2
    Last Post: 10-03-2007, 08:22 AM
  7. Counting Rows by Month
    By [email protected] in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 11-28-2005, 10:10 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