+ Reply to Thread
Results 1 to 9 of 9

Count days between dates

  1. #1
    Registered User
    Join Date
    04-22-2015
    Location
    Iceland
    MS-Off Ver
    2019
    Posts
    33

    Count days between dates

    Hello
    I can't make work the formula =days on google spreadsheets
    I'm adding and deleting alot of lines, so i can't have 2 specific cells to count

    I want to count on A2 the dates between A3 and A9999


    Please Login or Register  to view this content.


    Any soul available to help me?
    Last edited by Web-Man; 02-15-2022 at 06:18 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Count days between dates

    If you are just counting dates, try =countA()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-22-2015
    Location
    Iceland
    MS-Off Ver
    2019
    Posts
    33

    Re: Count days between dates

    Quote Originally Posted by FDibbins View Post
    If you are just counting dates, try =countA()
    It shows me 17 :s

    Attachment 767727

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Count days between dates

    from your data, and your responses, it seems you want count of the number of unique dates in column A.
    so the formula should be:

    Please Login or Register  to view this content.
    Screen Shot 2022-02-12 at 1.46.18 am.png

    While i type, i see others also working, so to counteract, you can use this in Google Sheets:

    Please Login or Register  to view this content.
    Last edited by janmorris; 02-11-2022 at 03:11 PM.

  5. #5
    Registered User
    Join Date
    04-22-2015
    Location
    Iceland
    MS-Off Ver
    2019
    Posts
    33

    Re: Count days between dates

    Thank you @janmorris , but i need to count on A2 the number of days between A3 and A9999
    Because i will add hundreds of new lines

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Count days between dates

    please see new edit, and you can adjust to be:

    Please Login or Register  to view this content.
    this will give you unlimited new rows

    NOTE: you can NOT put the formula in the same range you are trying to sum the unique values.. that is just plain @#$%id
    Last edited by janmorris; 02-11-2022 at 03:00 PM.

  7. #7
    Registered User
    Join Date
    04-22-2015
    Location
    Iceland
    MS-Off Ver
    2019
    Posts
    33

    Re: Count days between dates

    It is working now for the old list janmorris
    But i added new days from January and is not working properly

  8. #8
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Count days between dates

    if you want the actual days between the earliest date and the latest date, then use:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    04-22-2015
    Location
    Iceland
    MS-Off Ver
    2019
    Posts
    33

    Re: Count days between dates

    Thank you janmorris , thats it!

+ 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. Replies: 2
    Last Post: 01-03-2019, 05:36 PM
  2. [SOLVED] Count Number of Days excluding overlapped dates between multiple dates
    By givemeaccessexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2018, 06:43 PM
  3. Excel 2003 calculate days between 2 dates but do not count dates specified
    By Ditch1983 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2017, 07:16 AM
  4. [SOLVED] Count instance of >8 days between consecutive dates in a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-07-2017, 11:18 AM
  5. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2017, 11:03 PM
  6. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2017, 06:35 PM
  7. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2017, 02:19 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