+ Reply to Thread
Results 1 to 3 of 3

Matching date and time

Hybrid View

hanif Matching date and time 08-03-2016, 10:10 AM
MarvinP Re: Matching date and time 08-03-2016, 10:32 AM
hanif Re: Matching date and time 08-03-2016, 10:57 AM
  1. #1
    Forum Contributor
    Join Date
    11-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    391

    Matching date and time

    Hi All,

    I have attached a sheet, as you can see column A and F have some dates, Column B time which increase every 15 min and Column G with time increases every 10 min. Column C has values of 1 and 0. I am looking for a fuction to look if dates (Col A and F) are matched and if time in col G are equal or included in time in Col B then the value in Col C be in Col H. I have shown my expectation in red in the attached. Thanks for your help.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,260

    Re: Matching date and time

    Hi hanif,

    If you create a helper column for each and Add the Date and Time together it would be an easier problem, but find the attached where an Array formula works without helper columns. To enter an Array formula you need to hold down the Ctrl+Shift and then press the Enter key. We call these CSE formulas. When successful the curly brackets will appear around the formula.

    In C2 the answer looks like:
    =IF(ISERROR(MATCH(A2+B2,$F$2:$F$26498+$G$2:$G$26498,0)),0,1) (entered with a CSE)
    In H2 it is:
    =IF(ISERROR(MATCH(F2+G2,$A$2:$A$15931+$B$2:$B$15931,0)),0,1) (entered with a CSE)

    CSE Match Date Plus Time.xlsx

    I've reduced the size of the attached file so it would fit on this board to only a 1000 rows.
    Attached Files Attached Files
    Last edited by MarvinP; 08-03-2016 at 10:44 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    391

    Re: Matching date and time

    Thanks Marvin

+ 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: 9
    Last Post: 02-15-2015, 07:32 PM
  2. two tables, closest date and time matching
    By sknalodz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-10-2014, 05:17 AM
  3. Matching date and time between 2 files
    By jeustace77 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-24-2014, 05:29 AM
  4. Matching Date and Time Stamped Data between worksheets
    By simoneug in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2013, 02:29 PM
  5. Indexing and matching data from date range and matching
    By Rickomicko in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 11:46 AM
  6. Calculating Time matching info in Data Validation Column and Date
    By dbroderick in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2010, 04:22 PM
  7. Matching Value in F:F to lastest date/time in A:A
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2010, 11:33 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