+ Reply to Thread
Results 1 to 4 of 4

Counting Number of cells that fall within a date range not working

  1. #1
    Registered User
    Join Date
    06-02-2017
    Location
    Michigan
    MS-Off Ver
    2010
    Posts
    8

    Counting Number of cells that fall within a date range not working

    I am trying to count the number of pipes that were made within a certain date range. This is the formula I am using: =COUNTIFS(F:F,">="&DATE(1899,1,1),F:F,"<="&DATE(1949,12,31)). The dates are in column F which there are around 5000 rows. Each row represents one pipe, the other columns contain other information such as a pipe identification number but this is irrelevant to this particular formula. I am trying to count the number of cells AKA the number of pipes with a date between 1900 and 1950. The formula is currently giving me a result of 0 (which is not correct). If I copy and paste 50 of the dates or so into another sheet and copy and paste the same exact formula it works in the other sheet but I cannot get it to work in the sheet that I need it to (the one with 5000 rows). I have tried everything and I cannot get it to work. I am certain that the formula is correct since it works in the smaller sheet when I test it there. Some of the cells do not contain a date and are blank since this information was never recorded or lost or something like that for that particular pipe; these blank cells are the only thing I can think of that may be casuing a result of 0 to show up. However when I include blank cells in the smaller sheet to test the formula it does not affect it at all. Any ideas on what may be causing the equation in this particular case to give me a 0?

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: Counting Number of cells that fall within a date range not working

    Dates before 01/01/1900 will not work.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-02-2017
    Location
    Michigan
    MS-Off Ver
    2010
    Posts
    8

    Re: Counting Number of cells that fall within a date range not working

    Thank you, I knew it was something incredibly simple!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: Counting Number of cells that fall within a date range not working

    You're welcome!

+ 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 number of cells that fall in a particular month.
    By thekid22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2015, 11:40 PM
  2. [SOLVED] Counting how many rows fall on a certain date between two other dates in different cells
    By JessHasQuestions in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-29-2014, 10:18 AM
  3. [SOLVED] Counting hours and minutes that fall within a date range
    By Harrytheb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2013, 05:42 PM
  4. Counting figures that fall withing a weekly date range
    By sam-1890 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2012, 06:58 AM
  5. [SOLVED] Counting cells that fall in a date range AND meet a Yes/No condition
    By pentatonic145 in forum Excel General
    Replies: 2
    Last Post: 05-01-2012, 04:26 PM
  6. Replies: 2
    Last Post: 11-16-2010, 06:05 AM
  7. Replies: 3
    Last Post: 08-08-2005, 06: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