+ Reply to Thread
Results 1 to 8 of 8

count the same days

  1. #1
    Registered User
    Join Date
    09-26-2022
    Location
    Netherlands
    MS-Off Ver
    MAC. Office version 16.64
    Posts
    3

    count the same days

    Hi, i hope i've come to the right place with my question.

    I'm currently analysing movements that are logged in an excel sheet of circa 75k rows. There is information about the date, time, duration, location from and to and some information about the serial number etc.
    Sometimes a car will drive 1 or 2 rides a day, sometimes 15 drives a day. I would like to generate a ride-number count.

    For example.
    Car A drives 10 times at 16-Sept. then i would like it to count it like this:

    16/9 1. 10:00 - 11:00 (1h)
    16/9 2. 11:10-11:30 (0.2)
    16/9 3 11:40-12:00 (0.2).

    The time and duration is already in the spreadsheet. I just need to add an colom that counts the days, and when its another date starts again. (so 17/9 will start with 1).

    Is this at all possible/ do-able?

    Kind regards,
    Pascal

  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,869

    Re: count the same days

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook. Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

    If you have Excel 2016, please update your forum profile to clarify this.
    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
    09-26-2022
    Location
    Netherlands
    MS-Off Ver
    MAC. Office version 16.64
    Posts
    3

    Post Re: count the same days

    included an example of the sheet
    Attached Files Attached Files

  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,869

    Re: count the same days

    2022 v16 - what is that?

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.

    Please add a few rows of expected results manually to your sample workbook, as requested above.

  5. #5
    Registered User
    Join Date
    09-26-2022
    Location
    Netherlands
    MS-Off Ver
    MAC. Office version 16.64
    Posts
    3

    Re: count the same days

    Version of MS office 16.64 (mac). - changed in my profile.

  6. #6
    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,869

    Re: count the same days

    You have not added to the workbook, though. Show some expected results, please.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: count the same days

    With a table of your data.

    insert => table.


    With a pivot table of your data.

    insert => pivot table.



    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: count the same days

    In column B add the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    , format as General and fill down

    Alternatively
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    will keep the numbering sequential regardless of sort.
    Last edited by ByteMarks; 09-26-2022 at 05:54 AM.

+ 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. GoogleSheets: Count number of days between days listed in text
    By imohammed in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 16
    Last Post: 08-10-2023, 09:03 PM
  2. Replies: 2
    Last Post: 09-18-2022, 06:00 PM
  3. Replies: 8
    Last Post: 07-19-2022, 06:16 AM
  4. Replies: 16
    Last Post: 08-22-2017, 11:20 AM
  5. Trying to create a formula to count days based on 8 hour days
    By meadnl89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-03-2016, 06:41 PM
  6. [SOLVED] Count 6 working days (excluding Sunday, Holidays & half days)
    By eve_star1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2015, 08:00 AM
  7. Calculating time elapsed in days and count days within same range
    By michellem410 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2008, 01:13 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