+ Reply to Thread
Results 1 to 6 of 6

VLookup within a 5 minute timeframe

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    VLookup within a 5 minute timeframe

    Hi,

    It would be great to have some insight to help solve my problem below...

    I am looking at comparing time data within each cell of range (A) to another range (B) to see if there are any matches in range B within 5 minutes of range A. The 5 minute tolerance is not absolute so can be 2 minutes after for example. As an output a simple denotation of matching criteria would be sufficient "x" with non matching data being left blank. So far i have the following formula which is not correct but perhaps explains the formula better...

    =VLOOKUP((IF(ABS(G4<(G4+"00:05"),G4>(G4+"00:05"),"x"),E:E,1,FALSE)

    I would really appreciate any help on this issue

    Many thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: VLookup within a 5 minute timeframe

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-24-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VLookup within a 5 minute timeframe

    Question Example.xlsx

    Please find example attached for the original post

    Many Thanks

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: VLookup within a 5 minute timeframe

    In G3 Cell of Before Sheet

    =IF(SUMPRODUCT((E3>=($B$3:$B$12))*(E3<=($B$3:$B$12+TIME(0,5,0)))),"X",IF(SUMPRODUCT((E3<=($B$3:$B$12))*(E3>=($B$3:$B$12-TIME(0,5,0)))),"X",""))

    Drag it down..

  5. #5
    Registered User
    Join Date
    10-24-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VLookup within a 5 minute timeframe

    Thank you very much, it works fine

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VLookup within a 5 minute timeframe

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. How to add another timeframe into this spreadsheet
    By islanddave in forum Excel General
    Replies: 1
    Last Post: 10-21-2013, 12:22 PM
  2. [SOLVED] Macro that runs every minute when System Clock changes minute?
    By naira in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2013, 04:11 PM
  3. Correspond Dates to Minute by Minute Data
    By chubby127 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2013, 05:50 AM
  4. VLOOKUP based on date in specific timeframe
    By 4134x4nd3r in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2013, 05:10 PM
  5. rolling minute data into 30 minute averages
    By grc1980 in forum Excel General
    Replies: 0
    Last Post: 08-30-2006, 03:58 PM

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