+ Reply to Thread
Results 1 to 7 of 7

Split intervalls and sum time frames

  1. #1
    Registered User
    Join Date
    03-08-2010
    Location
    Sweden
    MS-Off Ver
    MS Office 365 Mac and Windows
    Posts
    94

    Split intervalls and sum time frames

    Hello forum,
    I have this file with interval of postal codes and time frames that I need to split to single rows for each postal code and also sum up the time frames for each column.
    The interval can be large or small and time frames can exist and not exist, normally the file contains + 1000 rows with intervals so the sample is just a small example.

    First sheet is the data and the result are in the result sheet after process.
    I need an vba that can run thru this data and get the result.
    Please have a look at the file thank you.
    Attached Files Attached Files
    Last edited by soreno; 07-19-2018 at 02:21 AM. Reason: Problem solved

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Split intervalls and sum time frames

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Split intervalls and sum time frames

    Explain to me what is going on in Columns M:R. Where does this data come from?

    The attached will get you the rest of the information.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Registered User
    Join Date
    03-08-2010
    Location
    Sweden
    MS-Off Ver
    MS Office 365 Mac and Windows
    Posts
    94

    Re: Split intervalls and sum time frames

    In the columns M:R is the time frame from each of the columns Van time 1, Van time 2, Evening time and Truck time.... Van time 1 for example has 10:00-12:00, means the sum of time frame is 2:00 hours. If there is no time frame info then = 0:00
    Thanks

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Split intervalls and sum time frames

    Quote Originally Posted by soreno View Post
    In the columns M:R is the time frame from each of the columns Van time 1, Van time 2, Evening time and Truck time.... Van time 1 for example has 10:00-12:00, means the sum of time frame is 2:00 hours. If there is no time frame info then = 0:00
    Thanks
    The code in post #2 does that.

  6. #6
    Registered User
    Join Date
    03-08-2010
    Location
    Sweden
    MS-Off Ver
    MS Office 365 Mac and Windows
    Posts
    94

    Re: Split intervalls and sum time frames

    Yes I know, just tried to explain..

    I have now tested the code from post # 2 on larger files and it works excellent.
    Thank you I'm very pleased with the result and this issue is solved

  7. #7
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Split intervalls and sum time frames

    Click the thread tools at the top of the post and select [SOLVED]. Thanks.

+ 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. How to count multiple time frames and multiple entires in those time frames
    By laurencubed in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-29-2016, 05:03 PM
  2. [SOLVED] difference between two time frames (over/under)
    By Alphabex in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2016, 02:47 PM
  3. Using time frames with formulas
    By MZing81 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2015, 02:19 PM
  4. Excel VBA with Internet Explorer (frames within frames?)
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-17-2014, 10:21 AM
  5. [SOLVED] Divide Time Period across different Time Frames (Calculating Interest)
    By kopapa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2013, 03:09 PM
  6. Formula for Time frames
    By Ricardo9211 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2011, 02:37 PM
  7. converting time frames
    By kylefoley76 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-07-2010, 05:45 AM

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