Results 1 to 3 of 3

Thread: Finding row on matrix matching 3 criteria and get a result (hour)

  1. #1

    Question Finding row on matrix matching 3 criteria and get a result (hour)



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hello,

    The matrix:
    Col A Col B Col C
    2012-11-08 07:26:16 Check-In John
    2012-11-08 13:23:58 Check-Out John
    2012-11-08 13:24:01 Check-In John
    2012-09-27 07:34:13 Check-In Marie
    2012-09-27 17:35:31 Check-Out Marie
    2012-09-28 07:10:16 Check-In Marie
    2012-09-28 17:34:40 Check-Out Marie

    The goal:
    Since i have a given:
    1. Name(which exists in column C)
    2. Date (which exists in column A - formated has (AAAA-MM-SS HH:MM:SS)
    3. Event (which exists in column B)
    4. Hour*

    I want to know the nearest hour that matches all criterias.

    In the example on top, if i give:
    John, 2012-11-08, Check-In, 14:00:00
    I want the result: 13:24:01

    If, for example, the date doesn't exist, the result could be a simple error message.

    Anyone can help me?

    Thanks in advance!

  2. #2
    This guy has cross-posted this at ExcelForum, http://www.excelforum.com/excel-gene...sult-hour.html, and has a perfectly good answer there.

  3. #3
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,268
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •