+ Reply to Thread
Results 1 to 7 of 7

Comparing postcodes and booking dates to identify clashes

  1. #1
    Registered User
    Join Date
    06-03-2014
    Posts
    4

    Comparing postcodes and booking dates to identify clashes

    Hi!
    I have 2 spreadsheets which I have to cross check regularly. The process of checking is quite time consuming, can anyone suggest a quick and efficient procedure?
    Both spreadsheets contain details of venue bookings which have to be compared to prevent double bookings.

    The 1st spreadsheet has a single venue date with the venue postcode.
    The 2nd spreadsheet has the venue date (but given as a date range, start date/end date) with the venue postcode.

    Ideally, I want to compare the venue postcodes and booking dates at the same time (I can only do one or the other just now). So that if a booking appears at the same venue on the same date it will flag up.

    Any suggestions???

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Comparing postcodes and booking dates to identify clashes

    Hi
    See attached sample to ses if this is what you are after.
    Good luck
    Tony
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-03-2014
    Posts
    4

    Re: Comparing postcodes and booking dates to identify clashes

    Thanks for your reply, to add another element to the problem, It would be beneficial to know if the dates from the 2nd spreadsheet are 3 weeks or 4 weeks before or after the date from the 1st spreadsheet. For example, in the 1st spreadsheet there is a booking for 10/12/14. In the 2nd spreadsheet there is a booking between 01/12/14 and 07/12/14 which falls into the 3 weeks after category. Hope this makes sense!! Here is an example of my findings after the time consuming approach lol!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-03-2014
    Posts
    4

    Re: Comparing postcodes and booking dates to identify clashes

    Sorry, didn't work for me, when I tried entering new data which I know clashes I get the following:
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Comparing postcodes and booking dates to identify clashes

    ARK, what is the date is June 14?

    Jacqui, is the date range in a single cell, or 2 cells?

    If you are using 2007 or later, try this...
    =IF(COUNTIFS(Sheet1!$A$2:$A$10,Sheet2!A2,Sheet1!$B$2:$B$10,">="&Sheet2!B2,Sheet1!$B$2:$B$10,"<="&Sheet2!C2)=0,"No Match","Duplicate")

    For 2003 and earlier, try this...
    =IF(SUMPRODUCT((Sheet1!$A$2:$A$10=Sheet2!A2)*(Sheet1!$B$2:$B$10>=Sheet2!B2)*(Sheet1!$B$2:$B$10<=Sheet2!C2))=0,"No Match","Duplicate")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    06-03-2014
    Posts
    4

    Re: Comparing postcodes and booking dates to identify clashes

    Hi, thanks for the prompt reply. Apologies, I'm guessing more infomation would be beneficial to help me!!
    I am currently using Microsoft Excel 2010. I have attached a copy of both spreadsheets that I need to cross check. The perfect solution for me which would save oodles of time is to have a formula that looks at the data from both spreadsheets and tells me if a booking date and venue appear in both spreadsheets, hence the 'clash' element.
    Another check I need to carry out is identifying if the dates from the 2nd spreadsheet fall 3 weeks or 4 weeks before or after the date from the 1st spreadsheet. So the comparison would involve checking for date/venue for clashes and date/venue for 3 or 4 week date difference.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Comparing postcodes and booking dates to identify clashes

    Hi
    You asked to check for a MATCH which the formula does do and it works. The #N/A indicates no match. However FDibbins appears to have provided you with a solution.
    Tony
    Quote Originally Posted by ScottishJacqui View Post
    Sorry, didn't work for me, when I tried entering new data which I know clashes I get the following:
    Last edited by ARGK; 06-03-2014 at 11:55 AM.

+ 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. booking time issues if booking removed
    By peter renton in forum Excel General
    Replies: 0
    Last Post: 04-11-2014, 03:50 AM
  2. comparing schedules to events for clashes
    By rosieq in forum Excel General
    Replies: 0
    Last Post: 09-19-2013, 11:40 AM
  3. Replies: 7
    Last Post: 06-13-2013, 06:56 AM
  4. [SOLVED] Comparing 2 Lists to Identify Differences
    By ORRACLE1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2012, 02:26 PM
  5. Booking Dates = have the dates already been taken?
    By jammy78 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-25-2012, 07:00 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