+ Reply to Thread
Results 1 to 15 of 15

VBA code to consolidate data based on time

  1. #1
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    VBA code to consolidate data based on time

    Dear Sir,


    I have attached an excel file named Timesplit.xls. The workbook contains two worksheets Rawdata and Output.

    Kindly provide me a macro code in such a way that input to be taken from Rawdata and displayed in the same format mentioned in the sheet named Output.

    Thanks and Regards
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    Re: VBA code to consolidate data based on time

    Dear Sir,

    Any update on this thread

    Awaiting for your valuable reply

  3. #3
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    Re: VBA code to consolidate data based on time

    Dear sir
    Kindly help me.

  4. #4
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    Re: VBA code to consolidate data based on time

    Dear Sir,

    Till now no one has attended to this thread

    Shall I close this thread

  5. #5
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    Re: VBA code to consolidate data based on time

    Sir,

    What happened

    No one has responded to this tread.

    Can I know the reason please

    Thanks

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: VBA code to consolidate data based on time

    Perhaps...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 10-19-2022 at 06:29 AM. Reason: Slight Change...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA code to consolidate data based on time

    16.00 pm to 17.59 pm
    24 hours time with am/pm?
    Please Login or Register  to view this content.
    Last edited by jindon; 10-19-2022 at 06:19 AM.

  8. #8
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    Re: VBA code to consolidate data based on time

    Dear Sir,

    Regret for the delay in testing the code.

    Now I have tested.

    Time upto 10.59.59 pm the code is executed without error

    If I have give time 11.00.00 pm then the code is not executing. It shows error.

    I have attached excel file. In the Sheet named Rawdata in row no 10 I have given time as 11.00.00 pm

    Thanks and Regards
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    Re: VBA code to consolidate data based on time

    Mr Jindon

    Thanks for the response. I have tested.

    The program is not getting executed. It shows error.

    I have attached macro file for your reference.

    Kindly check.

    Thanks and Regards
    Attached Files Attached Files

  10. #10
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: VBA code to consolidate data based on time

    Try.......
    Attached Files Attached Files
    Last edited by sintek; 10-19-2022 at 04:13 PM.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA code to consolidate data based on time

    skml,

    You have not ued my code.

  12. #12
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    Re: VBA code to consolidate data based on time

    Mr Sintek

    tested

    working fine

    Thanks for the response.

  13. #13
    Forum Contributor
    Join Date
    10-31-2013
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    147

    Re: VBA code to consolidate data based on time

    Mr Jindon

    I have not copied your code properly.

    Now I have tested your code

    Working fine.

    thanks and Regards

  14. #14
    Forum Contributor Dante Amor's Avatar
    Join Date
    07-24-2020
    Location
    MEXICO
    MS-Off Ver
    Excel 2013
    Posts
    212

    Re: VBA code to consolidate data based on time

    Here another macro for you to consider:

    Please Login or Register  to view this content.

  15. #15
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: VBA code to consolidate data based on time

    Quote Originally Posted by skml View Post
    Mr Sintek
    tested working fine
    Glad to have contributed...Tx for rep +

+ 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] VB Code to consolidate certain data
    By rmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-17-2021, 08:09 AM
  2. Replies: 0
    Last Post: 08-17-2021, 08:16 AM
  3. [SOLVED] VB Code to consolidate data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-18-2020, 04:43 AM
  4. [SOLVED] VB Code to consolidate data based on criteria
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2019, 04:43 PM
  5. [SOLVED] VB Code to consolidate data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2018, 10:21 AM
  6. [SOLVED] Consolidate time tracking data
    By evamukha in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 04-25-2017, 07:22 AM
  7. [SOLVED] VB Code to consolidate 2 days of data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-15-2017, 01:54 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