+ Reply to Thread
Results 1 to 3 of 3

highlighting duplicate values

Hybrid View

  1. #1
    Alice
    Guest

    highlighting duplicate values

    For example,

    A1 = 5
    A2 = 6
    A3 = 7
    A4 = 5
    A5 = 6

    How can you highlight/change the cell colour of all duplicate
    occurences of A1 in the row, in this case A4?

    And when changed is it possible to keep the highlighted colour, in A4,
    even if A1 is then changed to 6? and when it changes to again
    highlight/change the colour of all cells in the column that match its
    new number - in this case A2 and A5?

    -----
    i'm completely new to spreadsheets and feel a bit in over my head.

    thanks,

    Alice


  2. #2
    Max
    Guest

    Re: highlighting duplicate values

    One way, via conditional formatting

    Select A2:A5
    (ensure A2 is active)

    Click Format > Conditional Formatting

    Under Condition 1, make the settings as:
    Formula is: =AND(ISNUMBER(MATCH($A$1,A2,0)),$A$1<>"")
    Click Format button > Patterns tab > Green? > OK

    Click OK at the main dialog

    The above will trigger the desired cond formats within A2:A5,
    depending on the input in A1
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---
    "Alice" <aliceattea@gmail.com> wrote in message
    news:1139551406.162003.256180@g14g2000cwa.googlegroups.com...
    > For example,
    >
    > A1 = 5
    > A2 = 6
    > A3 = 7
    > A4 = 5
    > A5 = 6
    >
    > How can you highlight/change the cell colour of all duplicate
    > occurences of A1 in the row, in this case A4?
    >
    > And when changed is it possible to keep the highlighted colour, in A4,
    > even if A1 is then changed to 6? and when it changes to again
    > highlight/change the colour of all cells in the column that match its
    > new number - in this case A2 and A5?
    >
    > -----
    > i'm completely new to spreadsheets and feel a bit in over my head.
    >
    > thanks,
    >
    > Alice
    >




  3. #3
    Max
    Guest

    Re: highlighting duplicate values

    Line:
    > Formula is: =AND(ISNUMBER(MATCH($A$1,A2,0)),$A$1<>"")


    should read as:
    Formula is: =AND($A$1=A2,$A$1<>"")

    (the former works as well but it was overkill, sorry)
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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