+ Reply to Thread
Results 1 to 9 of 9

Count how many rows have the same date

  1. #1
    Registered User
    Join Date
    03-18-2011
    Location
    Atlanta Georgia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Count how many rows have the same date

    Hi,
    Newbie here! I have a spreadsheet with rows and rows of data by date. The far left column houses the date and then each row is another occurrence for that date. Basically I need to count how many rows have the same date. Here is what the basic sheet looks like:

    6/15/13
    6/15/13
    6/15/13
    6/15/13
    6/15/13
    6/16/13
    6/16/13
    6/17/13
    6/17/13
    6/17/13

    So the formula I am looking for would return, 6/15/13 =5, 6/16/13 = 2, 6/17/13 =3. Or something along those lines. I have a ton of data and using pivot table info to filter by each day will take FOREVER.
    Any help is greatly appreciated.
    Scott

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Count how many rows have the same date

    You can use Advanced Filter to get a unique list of the dates in a column.

    Then a simple COUNTIF will do the job!
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Count how many rows have the same date

    I'd copy your date column to another location Sheet2A1:A?, use Data -> Remove Duplicates to create a list of the unique values, then in =COUNTIF(Sheet1!$A$1:$A$5000,Sheet2!A1) and drag down alongside of each unique value
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    03-18-2011
    Location
    Atlanta Georgia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Count how many rows have the same date

    Wow, thanks for the quick responses. Not sure I follow or I did not do a great job of explaining. I need to know how many times the date shows up in the sheet. If there are 15 rows with Dec 16, 2013 in them, I need a count to show 15. The challenge is I have so much data I cannot use advance filter and do that for each date. I was hoping to find a calculation that would scan the sheet and return the count of each data (how many times the date shows up). The calculation would return a simple number, 15. I was also hoping the calculation would run for the whole sheet and not just one date at a time. So I would get a result that showed how many times each date was listed. Every single day for the last six months is present in the sheet. Sometimes a day may be present 167 times, while the next day is present 22 times. I have started the process manually, but really would like to automate this.
    Thanks for any idea
    Scott

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Count how many rows have the same date

    .. The challenge is I have so much data I cannot use advance filter and do that for each date.
    Advanced Filter is not working like this. You can use it from the control panel or using a simple macro..

    See the example.
    Attached Files Attached Files

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Count how many rows have the same date

    To accomplish this in a single cell without the use of VB, you would have to create an expression that compounded 167 other formulas.

    It would come close to, if not exceed, the maximum character limit for a single formula. (I think it's a 2,000 character limit.)

  7. #7
    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 how many rows have the same date

    Please see attached file with formulas and layout.
    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

  8. #8
    Registered User
    Join Date
    03-18-2011
    Location
    Atlanta Georgia
    MS-Off Ver
    Excel 2003
    Posts
    18

    You guys rock!!!!

    Thanks so much. These solutions worked perfectly. Again, thanks for taking time to help. It is much appreciated.
    Scott

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Count how many rows have the same date

    You are welcome-From ALL of us- and thanks for the feedback.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Count number of rows with same date so it can be charted.
    By MSKNJAjoshua12 in forum Excel General
    Replies: 2
    Last Post: 02-16-2013, 03:34 PM
  2. [SOLVED] To count the number of rows based on date and check how old the row is from current date.
    By raovv in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-04-2013, 11:45 AM
  3. How to count rows if greater than date?
    By jgomez in forum Excel General
    Replies: 4
    Last Post: 07-12-2011, 01:38 PM
  4. [SOLVED] Count rows if date is between two specified dates
    By mg_sv_r in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2005, 09:25 AM
  5. Count rows with specific date
    By lakegoddess in forum Excel General
    Replies: 3
    Last Post: 08-09-2005, 12:05 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