+ Reply to Thread
Results 1 to 2 of 2

Update Sheet2 based on date/time values in sheet1

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    31

    Update Sheet2 based on date/time values in sheet1

    Hi,

    My Sheet1 has below values. I need help with a macro to update sheet2 with "equipment" value based on start/end time values in sheet1.

    Sheet1
    Date Time Equipment StartTime EndTime
    01/Jul/2019 23:50 2 01/Jul/2019 23:50 02/Jul/2019 00:50
    01/Jul/2019 05:39 2 01/Jul/2019 05:39 01/Jul/2019 06:39
    01/Jul/2019 05:40 2 01/Jul/2019 05:40 01/Jul/2019 06:40
    01/Jul/2019 05:58 2 01/Jul/2019 05:58 01/Jul/2019 06:58
    01/Jul/2019 06:07 2 01/Jul/2019 06:07 01/Jul/2019 07:07
    01/Jul/2019 06:20 2 01/Jul/2019 06:20 01/Jul/2019 07:20
    01/Jul/2019 07:21 2 01/Jul/2019 07:21 01/Jul/2019 08:21
    01/Jul/2019 07:24 2 01/Jul/2019 07:24 01/Jul/2019 08:24
    01/Jul/2019 08:14 2 01/Jul/2019 08:14 01/Jul/2019 09:14
    01/Jul/2019 11:29 2 01/Jul/2019 11:29 01/Jul/2019 12:29
    01/Jul/2019 11:41 2 01/Jul/2019 11:41 01/Jul/2019 12:41
    01/Jul/2019 12:50 2 01/Jul/2019 12:50 01/Jul/2019 13:50
    01/Jul/2019 12:59 2 01/Jul/2019 12:59 01/Jul/2019 13:59
    01/Jul/2019 13:24 2 01/Jul/2019 13:24 01/Jul/2019 14:24



    Sheet2

    Date_Time 0:00 0:10 0:20 0:30 0:40 0:50 1:00 1:10 1:20 1:30 1:40 1:50 2:00 2:10 2:20 2:30 2:40 2:50 3:00 3:10 3:20
    01/Jul/2019
    02/Jul/2019
    03/Jul/2019
    04/Jul/2019
    05/Jul/2019
    06/Jul/2019
    07/Jul/2019
    08/Jul/2019
    09/Jul/2019
    10/Jul/2019
    11/Jul/2019
    12/Jul/2019
    13/Jul/2019
    14/Jul/2019
    15/Jul/2019
    16/Jul/2019



    Thanks
    Suji
    Attached Files Attached Files
    Last edited by sujimon; 09-28-2019 at 03:20 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Update Sheet2 based on date/time values in sheet1

    Please amend your sample sheet to show a few rows of manually calculated results. You have not explained what you want (at all) and I do not want to play guessing-games.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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] copy cells from sheet1 to specific cells in sheet2 based on date and time of day
    By Dj Duck in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-29-2016, 06:01 PM
  2. [SOLVED] Check if data in Sheet1 matches with Sheet2 and then update sheet1
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 01:39 PM
  3. move data from sheet1 to sheet2 based on date in column1 of sheet1
    By pcaldwell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2014, 03:20 PM
  4. Replies: 5
    Last Post: 09-29-2014, 11:08 AM
  5. [SOLVED] Code to copy data from sheet1 to sheet2 the first time, and then update after that
    By Excelfail in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-29-2014, 06:45 PM
  6. Help! Hiding rows in sheet2 based on values in sheet1
    By Oti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2011, 12:47 PM
  7. Macro to copy values from Sheet1 to Sheet3, based on criteria in Sheet2
    By John74 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2010, 04:55 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