+ Reply to Thread
Results 1 to 6 of 6

Help with match to second value as sign on time

Hybrid View

  1. #1
    Registered User
    Join Date
    09-26-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    2

    Help with match to second value as sign on time

    Hi All,

    Firslty, I'm a basic user of Excel and I need help with a formula, Please

    We are using a barcode scanner to sign in employees, this part we have be able to do, however, we have "Split Shifts", so we need to be able to cancel out the first sign on and search for the second sign on later i the day,

    All barcodes are being signed in to 1 column, so, I'm guessing the formula will need to look at previously scanned codes to be able to look for the second code further down the already signed column.

    Hope this makes sence.

    I was thinking of using a sign in and sign off process to capture both as a sign in, but not sure if you can do this in the same barcode input column as all info points to a 2 column setup, 1 for sign in and 1 for sign off.

    any help will be greatly appreciated.
    Attached Files Attached Files
    Last edited by Perry.350; 10-06-2023 at 11:52 PM.

  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
    53,048

    Re: Help with match to second value as sign on time

    Welcome to the forum

    1. Please read the yellow banner above and upload a sample WB.

    2. You may end up having to use a helper column where you count the entries for a specific individual, then base your search on that.
    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
    09-26-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    2

    Re: Help with match to second value as sign on time

    Thank you, I have uploaded a sample.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: Help with match to second value as sign on time

    Try:
    Formula: copy to clipboard
    =LET(u,UNIQUE(H2:H12),m,MAP(u,LAMBDA(r,TAKE(FILTER($E$2:$E$12,$H$2:$H$12=r),-1))),HSTACK(u,m))
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Help with match to second value as sign on time

    Here is another solution:

    Please try
    Formula: copy to clipboard
    =LET(b,H2:H12,t,E2:E12,u,UNIQUE(b),HSTACK(u,MAXIFS(t,b,u)))

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: Help with match to second value as sign on time

    @Hans: Nice. I hate it when you do that

+ 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. I have to reset my password every time I need to sign on
    By eeps24 in forum Suggestions for Improvement
    Replies: 2
    Last Post: 08-21-2022, 11:42 AM
  2. [SOLVED] Formula:add degree sign min sign and sec sign to a cell
    By khanaran in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-13-2020, 04:10 PM
  3. Replies: 2
    Last Post: 10-26-2018, 10:03 AM
  4. filtering exact match figures with opposite sign
    By yutoyumi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2017, 04:23 AM
  5. Trying to create Sign in Sign out sheet with time stamp
    By InNeedOfHelp88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2015, 07:11 PM
  6. $ sign disappears after the exit_Event fires for the first time
    By maddyaustin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2013, 03:18 AM
  7. Replies: 3
    Last Post: 01-08-2013, 09:48 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