+ Reply to Thread
Results 1 to 6 of 6

color formula

  1. #1
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60

    color formula

    Trying to figure out the formula to color only the
    Double numbers that are in this group.ROWS-A-B-C-D
    Any idea’s?????
    We want to color the all double numbers Red.


    029--295--095--025
    169--690--190--160
    280--802--202--282
    360--602--302--362
    456--564--464--454
    594--940--540--590
    613--134--634--614
    759--592--792--752
    828--289--889--829
    951--510--910--950


    Thanks Bob

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    What do you mean by double numbers?.. I don't see any duplicates in your sample set.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    And ABCD are columns I suppose?

  4. #4
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60
    Sorry about that . What I meant was double numbers like
    464 454 889 ----want them in red....only the double numbers
    hope I explained it right..
    Thanks
    Bob

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Select the range and go to Format|Conditional Formatting

    Select Formula Is from 1st drop down menu and enter this formula:

    =OR(LEFT(A1)=MID(A1,2,1),LEFT(A1)=MID(A1,3,1),MID(A1,2,1)=MID(A1,3,1))

    where A1 is your top-left most cell in your selection

    Click Format and choose your colour.

  6. #6
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60
    WORKS EXCELLENT!!!
    Thank you
    Bob

+ 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