+ Reply to Thread
Results 1 to 3 of 3

Non-Duplicate highlighting Conditional Formatting behaviour

  1. #1
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Non-Duplicate highlighting Conditional Formatting behaviour

    Ok, so I am just playing around a little, and I was going to make some sample data to play with and decided to see what using every character would look like.


    So, I used this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Which generates between 1 and 20 random characters using CHAR(1-255) randomly. Looks like I opened a JPEG in notepad.

    So I was curious what the odds of this kind of string having a duplicate is, and noticed that non-duplicate values are being highlighted? Even if I paste-special values, unique values are lighting up red.

    See screenshots

    duplicates.PNG
    duplicates2.jpg
    duplicates3.jpg

    I have these two values in cells right next to eachother, when I highlight only those two cells and select duplicates they both light up. However, if I do an =A1=A2 on them, I get a false?

    Please Login or Register  to view this content.

    I am wondering what could cause this?
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Non-Duplicate highlighting Conditional Formatting behaviour

    Strange, but notice how it's only the cells with a less-than or greater-than symbol at the start of the string. Excel is seeing that as a test, rather than part of the string apparently, which I confirmed in a simple two-cell test.

    In A1 I put the string: '<s
    In A2 I put the string: r

    When applying the 'duplicate value' formatting to A1:A2, A1 shows up as a duplicate. If I change A2 to the letter t, the duplicate goes away since t is not <s. Same occurs if I make it '>s and change from t to m, or any letter combination that would fail/pass the test.

    That's my theory.

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Non-Duplicate highlighting Conditional Formatting behaviour

    Interesting...that seems more like a bug than a feature in my opinion. Alert Microsoft!

+ 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. [SOLVED] help in Highlighting a row using Conditional Formatting
    By civram1982 in forum Excel General
    Replies: 4
    Last Post: 02-06-2014, 03:50 AM
  2. [SOLVED] Conditional Formatting and Highlighting
    By lenoble22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2013, 02:24 AM
  3. Highlighting in Conditional Formatting
    By NETSPY in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2013, 08:20 AM
  4. Conditional Formatting Highlighting
    By MPXJOHN in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2012, 04:07 PM
  5. Conditional formatting and row highlighting
    By Cary in forum Excel General
    Replies: 3
    Last Post: 06-03-2005, 12:05 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