+ Reply to Thread
Results 1 to 8 of 8

Return True or False based on multiple timestamps

  1. #1
    Registered User
    Join Date
    03-02-2016
    Location
    Sacramento, CA
    MS-Off Ver
    2013
    Posts
    4

    Return True or False based on multiple timestamps

    I want a formula added to Column F which returns True or False based on the following criteria. For each 'NAME', if the 'Release Time' of 'NAME' X is less than the 'Release Time' of 'NAME' Y and the 'Ship Time' of 'NAME' X is greater than the 'Ship Time' of 'NAME' Y, return True, else return False.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Return True or False based on multiple timestamps

    i see the name column B
    What names am I comparing the dates to

    can we have some examples
    38157183 as NAME X
    which one is NAME Y

    or are you comparing every entry
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-02-2016
    Location
    Sacramento, CA
    MS-Off Ver
    2013
    Posts
    4

    Re: Return True or False based on multiple timestamps

    I want to compare every entry.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Return True or False based on multiple timestamps

    So then
    that row is the MIN of all the release time and the Max of all the shiptime

    if the 'Release Time' of 'NAME' X is less than the 'Release Time' of 'NAME' Y
    for ROW 2 is 22/10/2015 8:32:55
    less than any of the other rows 3 to 12534
    for it to be less then them all - it would need to be the Minimum of the list

    and for shiptime the MAX

    so you are looking for the row entry which is the minimum and the maximum from the list
    Last edited by etaf; 03-02-2016 at 06:20 PM.

  5. #5
    Registered User
    Join Date
    03-02-2016
    Location
    Sacramento, CA
    MS-Off Ver
    2013
    Posts
    4

    Re: Return True or False based on multiple timestamps

    Hmm. I'm getting a little confused. Let me give an example to make sure we're clear. Look at ROWS 21 and 22. The Release Time for ROW 21 is less than the Release Time of ROW 22, and the ship time of ROW 22 is less than the ship time of ROW 21, therefore ROW 21 should return True. On the other hand, ROW 222 would return False, because there aren't any 'NAMES' with a greater 'Release Time' and a smaller 'Ship Time' than ROW 222.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Return True or False based on multiple timestamps

    Look at ROWS 21 and 22. The Release Time for ROW 21 is less than the Release Time of ROW 22, and the ship time of ROW 22 is less than the ship time of ROW 21, therefore ROW 21 should return True.
    so you are only comparing the row below

    so
    row 2 compares for row 3 and puts result in row 2
    row 3 compares row 4 and puts result in row 3

    if so

    =IF(AND(D2<D3,E2>E3),TRUE,FALSE)

  7. #7
    Registered User
    Join Date
    03-02-2016
    Location
    Sacramento, CA
    MS-Off Ver
    2013
    Posts
    4

    Re: Return True or False based on multiple timestamps

    I think we're getting closer now. If you were to sort column D ascending from oldest to newest release time, we would be comparing row 2 with rows 3 - 12534, and row 3 with rows 4 - 12534.

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Return True or False based on multiple timestamps

    OK,
    I think we're getting closer now.
    whats missing

    can you use a few examples now and mark true false on the sample sheet and a comment why
    may help understand what you mean

+ 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. Return TRUE/FALSE from multiple/complex range and set BG color
    By sika85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2015, 08:48 AM
  2. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  3. Replies: 6
    Last Post: 11-13-2014, 11:26 AM
  4. [SOLVED] TRUE/FALSE Based on multiple criteria
    By bond002 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-11-2014, 06:46 AM
  5. Return subsequent list based on true/false array
    By john. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2012, 02:23 PM
  6. [SOLVED] Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM

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