+ Reply to Thread
Results 1 to 3 of 3

Insert time stamps into two cells based on the variable of another cell

  1. #1
    Registered User
    Join Date
    10-27-2017
    Location
    Seattle
    MS-Off Ver
    excel 2013
    Posts
    1

    Question Insert time stamps into two cells based on the variable of another cell

    Hello,

    I would like Excel to insert a time in and a time out into the time in and out columns. When someone arrives we change the 0 to a 1 next to their name and then enter in the time manually to the time in column. When they leave we change 1 back to a 0 and then enter in the time manually to a different column. So we have 3 key columns. the first filled with 0's or 1's, and two others containing time in and time out. We sort the spread sheet very often using the 1's and 0's column to distinguish who is present and who is not. What is the formula that tells excel to time stamp a cell when the 0 is changed to a 1 and then time stamp a different cell when the 1 is changed back to a 0. We sort very often throughout the day and need the time to be static not dynamic after each sort.

    Thanks.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Insert time stamps into two cells based on the variable of another cell

    As you will need code for this, I've moved the thread accordingly.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Insert time stamps into two cells based on the variable of another cell

    Try this, in the worksheet module:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. Creating a cell that time stamps based on entered information
    By Cethard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2016, 03:37 PM
  2. [SOLVED] Adding a range of cells based on matching date stamps
    By Bonzopookie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2015, 10:42 AM
  3. Lining up data based on time stamps
    By briggsa in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-12-2014, 04:13 PM
  4. Replies: 0
    Last Post: 12-31-2013, 05:30 AM
  5. Replies: 5
    Last Post: 09-24-2013, 02:19 AM
  6. Multiple Time Stamps Based On Data Validation Selection
    By tzaman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2012, 06:16 PM
  7. can excel insert rown based on variable data in a cell?
    By SSBG in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2006, 08:35 AM

Tags for this Thread

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