+ Reply to Thread
Results 1 to 3 of 3

Compare 2 sets of data according to a Start and an End date column

  1. #1
    Registered User
    Join Date
    05-26-2014
    Posts
    2

    Compare 2 sets of data according to a Start and an End date column

    Hi,

    This is my first post on this forum so i apologise if I am not posting in exactly the right place, but I think my problem can only be solved with VBA script so I am trying here.

    In my attachment I am trying to identify rows within Table 2 that do not fit in with Table 1. Hopefully my attachment is clear. For example in Table 2, Row 16 has a Start Date of 17.11.2010 and an End Date of 13.11.2011 for ID number 151. This record has to be shown as "OK" because it fits into the date range of Row 103 of Table 1 i.e. Table 1 Row 103 has a Start Date of 01.01.2010 and an End Date of 28.02.2013 for ID 15. In other words the Start Date of Table 2 Row 16 is GE the Start date of Table 1 Row 103, and the End Date of Table 2 Row 16 is LE the End Date of the same Row 103 of Table 1, therefore this reocrd is OK.

    Row 14 of Table 2 needs to be shown as "NOT OK" because it has a Start Date of 12.01.2013 and an End Date of 31.03.2013 for ID 15 and this doesn't fit any date range of any Row in Table 1 for ID 15.

    Any help greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Compare 2 sets of data according to a Start and an End date column

    Hi salsawarren,
    maybe so
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-26-2014
    Posts
    2

    Re: Compare 2 sets of data according to a Start and an End date column

    Thank you for your quick answer. That worked perfectly.... thank you so much. ))))))

+ 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: 07-25-2013, 03:20 PM
  2. Compare two data sets
    By VIJEXCEL in forum Excel General
    Replies: 1
    Last Post: 02-29-2012, 07:11 AM
  3. Formula to compare 2 sets of data using the date?
    By murphy in forum Excel General
    Replies: 4
    Last Post: 03-10-2011, 04:05 PM
  4. Compare two sets of data
    By Hollyoak08 in forum Excel General
    Replies: 3
    Last Post: 03-09-2010, 05:54 AM
  5. [SOLVED] Compare two sets of data
    By Bhupinder Rayat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2005, 06:05 PM

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