+ Reply to Thread
Results 1 to 3 of 3

How to track and avoid duplicate sets of data: conditional formatting?

  1. #1
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    How to track and avoid duplicate sets of data: conditional formatting?

    Hey everyone,


    Essentially I am trying to validate inputted data but the Excel 'data validation' features seems too limited. Let me know if I am wrong.

    I export sets of data of different location and date ranges and I would like to track which locations and date ranges have been exported to ensure that user exported data doesn't accidentally overlap.

    For data that is about to be exported, the date range and location data is found in three cells, temp1!M3, temp1!N3, temp1!O3.

    Date range:
    Date from(cell temp1!M3): =min(temp1!F:F)
    Date to (cell temp1!N3): max(temp1!F:F)
    (where column F is where the dates are for the data that is to be exported)

    Location:
    (cell temp1!O3): =temp1!S2


    So far, what I've done is create a macro which copies the FROM Date, TO Date and LOCATION cells each time data is exported to the next available row in the following locations respectively: ref!P, ref!Q, ref!R . Now I am not sure what to design to be able to detect if users are trying to export data which contains dates that overlap with a date range for a particular location that have been recorded as already exported. I expect users to export on a weekly basis (for data covering a week but never to included weekends or holidays).


    Any ideas? So far, I've tried using a formula like this one in the data validation tool for the cell temp!O3 (the cell which contains the location) : =COUNTIFS(ref!P:P,"<="&temp1!M3,ref!Q:Q,">="&temp1!N3,ref!R:R,temp1!O3)<=1
    but it doesn't seem to work, and I'm not sure if the formula actually does what I want it to do.

    Please help!

    Goeff.
    Last edited by Geoff.; 11-26-2014 at 06:56 PM. Reason: typo

  2. #2
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: How to track and avoid duplicate sets of data: conditional formatting?

    Man... how do I change the title of the this post..? I meant "data validation" not "conditional formatting"...Apologies

  3. #3
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: How to track and avoid duplicate sets of data: conditional formatting?

    I got part of it!!

    I realized what was wrong with my formula and modified it. It seems to semi-work now. Here's the formula I entered in the data validation (under custom):
    =COUNTIFS(ref!P:P,"<="&temp1!M3,ref!Q:Q,temp1!O3) +COUNTIFS(ref!R:R,">="&temp1!N3,ref!R:R,temp1!O3) >= 1

    But before, my cell temp1!O3 used data validation to provide users with a scroll down option to select their location. I had to replace that with the above formula. Is there a way to have both operate? ? The data validation for the list and to have this formula to help prevent duplicates?

    Thanks!

    Geoff

+ 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. Conditional Formatting Rows, and Matching and Sorting Two Sets of Data
    By Alan L 185 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-07-2013, 08:16 PM
  2. [SOLVED] Conditional formatting using Icon sets (comparing data to data in array)
    By darth.dims in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-27-2012, 05:36 AM
  3. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  4. Replies: 1
    Last Post: 12-16-2005, 08:35 PM
  5. Conditional formatting-How do I avoid this?
    By Thomas Brill in forum Excel General
    Replies: 0
    Last Post: 01-13-2005, 02:31 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