+ Reply to Thread
Results 1 to 2 of 2

Preventing duplicates in separate sections of the same column

  1. #1
    Registered User
    Join Date
    07-25-2020
    Location
    uk
    MS-Off Ver
    2017
    Posts
    1

    Preventing duplicates in separate sections of the same column

    Hi, I am trying to use data validation to create a rota for work where you can't put the same person in two places at once. I am happy using the count if function to prevent duplicates e.g. =countif(A1:A5, A1)=1. My issue is that I need to include different sections in the same column for my data validation. e.g. A1:A5 and A12:17 but not the middle cells. Is there a way to do this with the count if data validation?

  2. #2
    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
    53,039

    Re: Preventing duplicates in separate sections of the same column

    hard to say without any workbook to play with, but perhaps combine 3 countif() with AND?
    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

+ 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. Macro for preventing of entering duplicates in column M
    By bajramo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2016, 09:41 AM
  2. Replies: 5
    Last Post: 07-31-2013, 08:21 AM
  3. List duplicates in separate column
    By gillmacca in forum Excel General
    Replies: 11
    Last Post: 06-15-2013, 02:12 AM
  4. Putting dotted vertical lines to separate sections of a column graph
    By feature in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-26-2013, 11:39 AM
  5. Preventing column duplicates unless specific condition
    By ericequip in forum Excel General
    Replies: 10
    Last Post: 05-27-2011, 08:21 AM
  6. How do I add the values of duplicates together in a separate column?
    By banestyrelsen in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-31-2008, 06:23 AM
  7. Separate area under a curve into two sections.
    By Liz in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-09-2005, 12:06 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