+ Reply to Thread
Results 1 to 5 of 5

Static Data

  1. #1
    Registered User
    Join Date
    10-05-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    3

    Static Data

    Hi!

    Is there any way to convert a result into a static data once it meets a given condition? I have been working on a worksheet that records a person's entry and exit inside my workplace. I'm using a barcode scanner because it's faster.

    For example,
    I logged in 8:00am and scan my ID. The worksheet then shows me my name, the date, time, and day, then tells me that I have logged in. The formula works fine at the first instance. Then at 12 noon, I scan my ID again. The worksheet tells me that I have logged out. The frustrating part is, the first instance also changed, displaying both "out". What I am wondering is how to make the first instance stay as "In" instead of "Out". I've been searching the web for answers for a week now but to no avail. I want to overcome this hurdle guys, I hope you could help me.

    I want to see this
    Name Time Date Day Type of log
    Andrei 8:00 am 23/11/15 Monday In
    Andrei 12:00nn 23/11/15 Monday Out

    instead, I get this:

    Name Time Date Day Type of log
    Andrei 8:00 am 23/11/15 Monday Out (the first instance changed)
    Andrei 12:00nn 23/11/15 Monday Out

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Static Data

    Hi, welcome to the forum

    So the log-in/out times are coming from the bar code scanner? Is there a way to set that up to show separate log's?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-05-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    3

    Re: Static Data

    Hi Ford,

    Thanks for the response , that was fast . No, they don't come from the scanner. The barcode scanner just scans the id and the worksheet shows the information from the scanned ID then shows the time. The Date and time uses VBA code.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Static Data

    Then cant you change the code to enter the actual (logged) time, rather than a formula? Have it set up that if there is a 2nd "log", it used that for "out"?

  5. #5
    Registered User
    Join Date
    10-05-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    3

    Re: Static Data

    Hmmmm.. not sure how to answer that. I'm sending you a sample of the worksheet.
    Attached Files Attached Files

+ 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. auto convert data from dynamic table to static data
    By wijnand in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2015, 10:11 AM
  2. Replies: 1
    Last Post: 08-12-2013, 08:38 AM
  3. Replies: 2
    Last Post: 08-12-2013, 06:19 AM
  4. Auto-refresh of static data alongside live data
    By lamexuk in forum Excel General
    Replies: 0
    Last Post: 03-15-2011, 06:16 AM
  5. New Data pasted over old data/Keeping static Text
    By ZackG in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2011, 02:06 PM
  6. [SOLVED] Is there anything as Static Data
    By all4excel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2007, 08:24 AM
  7. Static left hand side column and static header row.. how?
    By glic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2007, 01:45 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