+ Reply to Thread
Results 1 to 4 of 4

Macro to find time by Hour

  1. #1
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Macro to find time by Hour

    I need a macro that will look on Sheet 1 and find time by hour and insert the username of the current person logged in into the cell to the right.

    The time on the sheet is in hour blocks so 01:00.... 02:00 and so on...

    I attached a sample sheet but I'm not to sure where the times are going to be stored but I do know that they are going to be on sheet 1

    Thank you for your help
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Macro to find time by Hour

    I guess I should of mentioned that that it needs to find the hour based off current system time

  3. #3
    Forum Contributor
    Join Date
    04-20-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    312

    Re: Macro to find time by Hour

    I do not understand what exactly you mean by "find time by Hour" i assume you mean compare the Time in the Sheet with the Current hour and if found write the username of the current user there?
    If that is correct here is an example it will search the Whole sheet for Time Values und if it finds a match with the current time write the username to the left of that time.

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Macro to find time by Hour

    Exactly what I needed sorry my description was so vague but Im running on little to no sleep right now

+ 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. Replies: 1
    Last Post: 03-16-2016, 08:19 PM
  2. [SOLVED] Macro to find time hour period with maximum sale value
    By Ucpaul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2015, 05:41 PM
  3. Replies: 0
    Last Post: 03-07-2014, 11:26 AM
  4. Replies: 8
    Last Post: 05-13-2013, 04:36 AM
  5. [SOLVED] Find cells within 24 hour time range, time can go to next day
    By LANB5669 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-07-2012, 07:49 PM
  6. Find hour in a range of hour values
    By mqdias in forum Excel General
    Replies: 2
    Last Post: 04-11-2011, 05:06 AM
  7. Convert 12 hour to 24 hour time
    By RussellNonBrand in forum Excel General
    Replies: 5
    Last Post: 01-26-2011, 03:01 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