Detecting Duplicate Entries
VBA Telemetry pings you when your VBA projects fail
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Detecting Duplicate Entries

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I would like to display duplicate entries (which are allowed)in a column in red. I've tried this in conditional formatting (Formula Is)using the EXACT function to compare one cell against a range, but can't get it to work properly. I've applied the following to all cells in the column:
    =EXACT(A3,$A$1:A2)
    Is what I want to do possible?
    Thank You

  2. #2
    Legend NateO's Avatar
    Join Date
    Feb 2002
    Location
    Minneapolis, Mn, USA
    Posts
    9,700
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Conditional formatting sounds good. But your use of EXACT is wrong. Instead of comparing a cell to a formula in conditional formatting, try selecting cells A1 and A2, goto Format|Conditional formatting|Cell value is|equal to|=$A$3
    This will compare cells Al and A2 to cell A3.

    Hope this helps.
    Kind regards, Al.

  4. #4
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,775
    Post Thanks / Like
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-03-15 12:13, kkallay wrote:
    I would like to display duplicate entries (which are allowed)in a column in red. I've tried this in conditional formatting (Formula Is)using the EXACT function to compare one cell against a range, but can't get it to work properly. I've applied the following to all cells in the column:
    =EXACT(A3,$A$1:A2)
    Is what I want to do possible?
    Thank You
    Select the range of interest (say, A1:A100).
    Activate Format|Conditional Formatting.
    Choose 'Formula Is' for Condition 1.
    Enter in the formula box:

    =COUNTIF($A$1:$A$100,A1)>1

    Activate Format.
    Choose red either on Font or Patterns tab.
    Click OK, OK.

  5. #5
    Board Regular Brian from Maui's Avatar
    Join Date
    Feb 2002
    Posts
    8,445
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    =countif($1$100,a1)>1

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com