+ Reply to Thread
Results 1 to 6 of 6

Find another row in a table whose first two columns match and determine value of third

  1. #1
    Registered User
    Join Date
    03-28-2024
    Location
    Seattle, WA
    MS-Off Ver
    M365
    Posts
    4

    Find another row in a table whose first two columns match and determine value of third

    My company's employee hour tracking program outputs absence information in a specific format which I then need to translate into another format for manual input into a second program. I am well underway in automating this translation, but I am having trouble discriminating between multiple absence codes for a single individual on a single day; I am required to only log the absence code correlating to the greatest number of hours in that day, rounded to the nearest whole number, but no less than 1. For example, if an employee uses 3 hours of sick time (absence code S) and 5 hours of vacation (absence code V) on the same day, there would be 'program 1' output entries for each but I would only record the code as "5V" into 'program 2'. My thought was to use VLOOKUP or INDEX MATCH to determine if more than one row with matching employee number and date entries exist and then compare the hour values, ignoring the lesser and translating the greater, but, try as I might, I cannot find a combination of functions that doesn't just compare a row with itself.

    Employee schedules vary from 8 to 10 hours per day and when their absence is for the whole day, only the letter code gets entered (V for a whole day of vacation).

    Capture.PNG
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-28-2024
    Location
    Seattle, WA
    MS-Off Ver
    M365
    Posts
    4

    Re: Find another row in a table whose first two columns match and determine value of third

    In my Sample file, the program 1 absence codes are translated into a new code by necessity. In my written example above, I would actually enter "5E" into program 2.

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Find another row in a table whose first two columns match and determine value of third

    If I got it right.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by DJunqueira; 03-28-2024 at 02:58 PM.

  4. #4
    Registered User
    Join Date
    03-28-2024
    Location
    Seattle, WA
    MS-Off Ver
    M365
    Posts
    4

    Re: Find another row in a table whose first two columns match and determine value of third

    I think we're on the right path, but I'm hoping that the lesser entry of the day doesn't output anything, so I don't have to take the time to check for duplicate entries. I appreciate your help.

  5. #5
    Registered User
    Join Date
    03-28-2024
    Location
    Seattle, WA
    MS-Off Ver
    M365
    Posts
    4

    Re: Find another row in a table whose first two columns match and determine value of third

    Got it! Thank you for your help, DJunqueria! I used:

    Capture2.PNG

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Find another row in a table whose first two columns match and determine value of third

    Sorry for the incomplete translation, something went wrong with the engine that I use.

+ 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] find match from a table with multiple rows and columns
    By tunatl in forum Excel General
    Replies: 2
    Last Post: 09-23-2022, 04:54 AM
  2. Replies: 3
    Last Post: 01-06-2020, 06:30 AM
  3. Replies: 3
    Last Post: 08-28-2019, 10:52 PM
  4. [SOLVED] Find partial match between two columns and highlight cells that match
    By TomToms in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-18-2019, 01:07 PM
  5. [SOLVED] Vlookup to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  6. [SOLVED] VLOOKUP or INDEX/MATCH when referencing a table to determine two criteria are being met
    By gunnerau in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2014, 07:01 AM
  7. Find occurrence and determine most likely match
    By MittenWinter in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2013, 09:35 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