+ Reply to Thread
Results 1 to 8 of 8

Counting Vehicle Trips in Date Ranges

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    London
    MS-Off Ver
    MS Office 2011 for Mac
    Posts
    1

    Counting Vehicle Trips in Date Ranges

    Hello,

    I am trying to calculate the total tonnage that my vehicles are carrying when entering my yard (example in the attached spreadsheet). Up to five vehicles will enter the yard each day, so there are multiple entries/vehicles for the same date (i.e. 1st October). I have already designed a long list of data showing which vehicles are entering the yard on each day but now there are thousands of entries and it would be too difficult to count everything manually.

    I would like the excel function to use the dates in the date range as well as the written tonnage of each vehicle, to sum all the tonnage from all vehicles in each calendar day so I know how much tonnage on each particular day is coming into the yard.

    Thanks,

    John Excel Help.xlsx

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Counting Vehicle Trips in Date Ranges

    Hi,

    a possible approach:


    Formula: copy to clipboard
    Please Login or Register  to view this content.



    or in D2 and below:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Counting Vehicle Trips in Date Ranges

    Hi,

    in the attached file I've also used a pivot table.

    Regards
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-19-2014
    Location
    Sussex, England
    MS-Off Ver
    2010
    Posts
    141

    Re: Counting Vehicle Trips in Date Ranges

    Excel Help v2.xlsx this was the only way I could figure going it
    Last edited by guy13; 11-04-2014 at 11:24 AM.

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Counting Vehicle Trips in Date Ranges

    Hi guy13,

    having first date in E2 and second date in F2, you could sum per range using SUMIFS or SUMPRODUCT


    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards


    Edit: left ; from Italian settings

  6. #6
    Forum Contributor
    Join Date
    08-19-2014
    Location
    Sussex, England
    MS-Off Ver
    2010
    Posts
    141

    Re: Counting Vehicle Trips in Date Ranges

    very good canapone !
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Counting Vehicle Trips in Date Ranges

    Hi Guy13,

    glad to help you and thanks for your very kind feedback.

    Regards

  8. #8
    Forum Contributor
    Join Date
    08-19-2014
    Location
    Sussex, England
    MS-Off Ver
    2010
    Posts
    141

    Re: Counting Vehicle Trips in Date Ranges

    the topic leader was johnexcel1987. I tried tired to help as well but you finished it off

    See if you can help me canapone - http://www.excelforum.com/excel-form...ate-names.html

+ 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. [SOLVED] counting date ranges
    By utahguy9384 in forum Excel General
    Replies: 7
    Last Post: 05-23-2014, 11:50 PM
  2. Counting based on date ranges
    By smohyee in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-09-2013, 09:56 AM
  3. [SOLVED] Counting the number of times a date occurs in multiple start and end date ranges.
    By Grizz in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-05-2013, 04:41 PM
  4. Replies: 2
    Last Post: 01-30-2013, 12:06 PM
  5. Need help counting events within a certain date ranges
    By i.suck.at.excell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-25-2012, 11:32 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