+ Reply to Thread
Results 1 to 10 of 10

how to cross check data based on time format

  1. #1
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    how to cross check data based on time format

    Dear All,

    i got a task where i need to find who drove a vehicle on a certain time.
    my given data is vehicle make, driver, and time range. so the issue is to compare time range VS fixed time
    ( attached file with details in H)

    is it possible in H to have a formula or UDF so that : if F=B , and G between C&D , then copy A to H.

    thanks for any help .



    regards
    Attached Files Attached Files
    Last edited by legolas; 03-08-2012 at 05:45 AM.

  2. #2
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: how to cross check data based on time format

    Could not download your file. But this could be the formula for

    if F=B , and G between C&D , then copy A to H.

    Please Login or Register  to view this content.
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

  3. #3
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    Re: how to cross check data based on time format

    ok I uploaded my file.
    Last edited by legolas; 03-08-2012 at 07:49 AM.

  4. #4
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    Re: how to cross check data based on time format

    Quote Originally Posted by johnjohns View Post
    Could not download your file. But this could be the formula for




    Please Login or Register  to view this content.

    I think i need an array formula

  5. #5
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    Re: how to cross check data based on time format

    is it not possible to compare a fixed time VS a time range

    any help on this one please or i can just ignore


    thanks again

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: how to cross check data based on time format

    Try this in H2:
    Please Login or Register  to view this content.
    Confirmed with Ctrl-Shift-Enter
    Quang PT

  7. #7
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: how to cross check data based on time format

    Maybe something like:
    =INDEX($A$2:$A$18,SUMPRODUCT(($B$2:$B$18=F2)*($C$2:$C$18<=G2)*($D$2:$D$18>=G2),ROW($A$2:$A$18))-1,1)

  8. #8
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    Re: how to cross check data based on time format

    Dear all

    I am still can't get it to work so i uploaded part of my actual file

    kindly take a look, thanks a lot
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: how to cross check data based on time format

    Here is my suggestion.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    Re: how to cross check data based on time format

    @ OnErrorGoto0 & @estige

    excatly what i need
    thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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