+ Reply to Thread
Results 1 to 7 of 7

Flag for Multiple Values within 3 mins of each other

  1. #1
    Registered User
    Join Date
    08-04-2011
    Location
    Anchorage, AK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Flag for Multiple Values within 3 mins of each other

    Trying to flag any teachers that have more than 1 submission wihtin 3 mins of each other. I'm terrible with arrays but I'm guessing an index/match might work here? Example data below:


    Submission Form Version Date Time SELECT TEACHER
    1 4/22/2014 3:36 PM Teacher 1
    1 4/22/2014 3:43 PM Teacher 1
    1 4/22/2014 3:50 PM Teacher 1
    1 4/22/2014 4:31 PM Teacher 1
    1 4/23/2014 4:39 PM Teacher 2
    1 4/23/2014 4:49 PM Teacher 2
    1 4/23/2014 5:19 PM Teacher 2
    1 4/22/2014 1:46 PM Teacher 3
    1 4/22/2014 1:53 PM Teacher 3
    1 4/22/2014 1:57 PM Teacher 3
    1 4/22/2014 2:01 PM Teacher 3
    1 4/23/2014 12:04 PM Teacher 3
    1 4/22/2014 11:44 AM Teacher 4
    1 4/22/2014 1:55 PM Teacher 4
    1 4/22/2014 1:31 PM Teacher 5
    1 4/22/2014 1:40 PM Teacher 5
    1 4/22/2014 5:43 PM Teacher 5
    1 4/23/2014 1:17 PM Teacher 5
    1 4/23/2014 4:07 PM Teacher 5
    1 4/24/2014 2:01 PM Teacher 5
    1 4/24/2014 2:19 PM Teacher 5
    1 4/24/2014 2:28 PM Teacher 5
    1 4/23/2014 12:41 PM Teacher 6
    1 4/23/2014 12:54 PM Teacher 6
    1 4/23/2014 2:12 PM Teacher 6
    1 4/23/2014 2:35 PM Teacher 6
    1 4/22/2014 12:54 AM Teacher 7
    1 4/22/2014 5:39 PM Teacher 7
    1 4/22/2014 6:10 PM Teacher 7

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Flag for Multiple Values within 3 mins of each other

    Assuming time is in column C and teachers are in column E, then this might work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Past in F2 and copy down
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    08-04-2011
    Location
    Anchorage, AK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Flag for Multiple Values within 3 mins of each other

    Thank you. I tried adding that, but changed it to: =IF(AND((C3-C2)<"00:03"*1,E3=E2),"Flag","") because the 03:00 appears to be checking within 3 hours, and not minutes like I'm looking for.

    This doesn't appear to be working as it is flagging some with drastically different times on them. I despise times/dates in Excel. I also need to make sure the times are within the same dates or potentially when they cross over from midnight. Criteria is same Teacher Name within 3 minutes of a previous entry. So probably need to incorporate date in there too.

  4. #4
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Flag for Multiple Values within 3 mins of each other

    Updating Formula
    Last edited by playaller; 04-30-2014 at 10:16 PM.


    Shelton A.
    If Helpful, Add Reputaion!

  5. #5
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Flag for Multiple Values within 3 mins of each other

    Assuming your time data starts in C2. Teachers start in D2...

    Paste in E3 and Copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-04-2011
    Location
    Anchorage, AK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Flag for Multiple Values within 3 mins of each other

    I think this will work. Thank you very much.

  7. #7
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Flag for Multiple Values within 3 mins of each other

    You're more than welcome my friend!

    Feel Free to Click the star under my name to Add Reputation if my resolution worked. Also don't forget to mark the thread as RESOLVED by clicking on Thread Tools on the top of this board and clicking RESOLVED! Thank you!

+ 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. Replies: 3
    Last Post: 05-22-2012, 03:26 PM
  2. Time Converter : Mins/Secs to Hours/Mins
    By jamesgsi1983 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2009, 09:02 AM
  3. Macro to set Flag on dup values
    By carlysyme in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2009, 09:16 AM
  4. Replies: 8
    Last Post: 01-07-2006, 03:35 PM
  5. How to convert numeric value to mins and addimg mins to Hrs.
    By ramana in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-28-2005, 06:05 AM

Tags for this Thread

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