+ Reply to Thread
Results 1 to 4 of 4

Checking a duplicate in a concatenated column

  1. #1
    Registered User
    Join Date
    07-14-2018
    Location
    London, England
    MS-Off Ver
    OSX v16.12
    Posts
    16

    Checking a duplicate in a concatenated column

    Hello,

    Ive been trying to work out how to stop some duplicates where a date and a drop down combine.

    There are two columns, one with a date, the other is a drop down list, in the third a concatenation of the two.

    When the list grows its easy to enter the date and drop down not reading that for the same date the drop down list option was already previously chosen, this results in an output in a summary sheet being incorrect, or a repeated value, and or an incorrect calculation.

    I'm hoping to (based on advice) to be able to upon entry of either first date and then list choice or vice versa to check the concatenated row and if a duplicate exists to produce either an error, a message, or to disallow the entry.

    I've attached an example spreadsheet as I know this is a bit of a long winded explanation.

    Thank you in advance for your taking a look,

    Kind regards AI
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,685

    Re: Checking a duplicate in a concatenated column

    You don't need to check cell C2, as that is the first in your list, so put this formula in cell C3:

    =IF(COUNTIF(C$2:C2,A3&B3),"Already chosen",A3&B3)

    then copy down. If you want to make it more robust, you can amend it like this:

    =IF(OR(A3="",B3=""),"",IF(COUNTIF(C$2:C2,A3&B3),"Already chosen",A3&B3))

    so that it doesn't report on blanks, and then you can pre-copy it down the column as far as you like.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-14-2018
    Location
    London, England
    MS-Off Ver
    OSX v16.12
    Posts
    16

    Re: Checking a duplicate in a concatenated column

    Hi Pete
    Thats amazing, no macro needed, thank you so much ++
    AI

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,685

    Re: Checking a duplicate in a concatenated column

    You're welcome, and thanks for the rep.

    Pete

+ 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. checking concatenated hyperlink
    By Dizzy50 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-25-2015, 05:04 PM
  2. Formula - Find duplicate concatenated characters in single cell
    By cslicer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2014, 01:16 PM
  3. Duplicate checking
    By JoshJ in forum Excel General
    Replies: 3
    Last Post: 12-09-2013, 06:46 PM
  4. vba to Match concatenated values in concatenated columns
    By bjurick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2012, 03:45 PM
  5. Find an exact duplicate match on concatenated cells
    By madball87 in forum Excel General
    Replies: 2
    Last Post: 10-04-2011, 06:07 AM
  6. Duplicate Checking
    By niladri20005 in forum Excel General
    Replies: 1
    Last Post: 07-15-2011, 02:48 PM
  7. Checking column for duplicate values and appending
    By Elmer in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-11-2008, 07:25 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