+ Reply to Thread
Results 1 to 5 of 5

duplicate conditional formatting

  1. #1
    Registered User
    Join Date
    11-19-2009
    Location
    erie, pa
    MS-Off Ver
    Excel 2007
    Posts
    33

    duplicate conditional formatting

    I have a whole column filled with data, ranging from about 100-500 rows of data depending on the day. Sometimes duplicates happen, and I need to know about it. What I am hoping to do, is look for duplicates, but format different duplicates differently.
    ex)
    889546
    446533
    889546
    25846
    2156
    25846

    If it is possible to highlight all 889546 cells one color and 25846 another color etc. As I understand, colorindexing is done by numbers, is it possible to loop through this as well?

  2. #2
    Forum Contributor thompsy121's Avatar
    Join Date
    09-25-2008
    Location
    Newcastle upon Tyne - UK
    MS-Off Ver
    Office 365
    Posts
    119

    Re: duplicate conditional formatting

    Hi there,

    You need to use conditional formatting. Simply click on a cell...i would start at A1, then click format, conditional formatting.

    At this stage on condition 1 change the drop down menu to "equals to", in the next box type the number you are looking for eg "889546".

    Once you have done this click format, patterns, pick the relevant colour, then click Ok twice.

    Once you have done this click back into cell A1, copy, then select the cell range where you want the formats to apply to. Right click and press paste special. Then click formats...this will copy the colour-coding/conditional formatting to the relevant cells but will not copy any text/values etc.

    Please find attached a quick example.

    I have set the formats to search for 889546 and turn them red and 25846 yellow.

    On this example i have copied the formatting to every cell on the sheet. If you have a look at the conditional formatting...you can see the two formats i have applied.

    HTH
    Attached Files Attached Files

  3. #3
    Forum Contributor thompsy121's Avatar
    Join Date
    09-25-2008
    Location
    Newcastle upon Tyne - UK
    MS-Off Ver
    Office 365
    Posts
    119

    Re: duplicate conditional formatting

    Also if you try simply typing the relevant number into any blank cell - the colour will adjust accordingly. If you delete all the numbers on this sheet - everything will turn white again. But the conditional formatting will still remain in the background.

    Have a play around.

    Thanks

  4. #4
    Registered User
    Join Date
    11-19-2009
    Location
    erie, pa
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: duplicate conditional formatting

    Thompsy, thanks for the reply. However, I do not know what the numbers will be each time the sheet populates. I was hoping to get some vba code that will search for duplicates and conditionally format the cells, but changing for each new duplicate that was found.

    For the time being, I am using your described way as a workaround.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: duplicate conditional formatting

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!


    This is the 2nd instance in as many days, I'm afraid should you continue in this vein your account will be suspended.

    Indeed I would say comparing your post listings here and at MrExcel you do this regularly - the prior threads weren't noticed at the time.

    Though this practice is not banned it is frowned upon by all and we expect you to at least have the courtesy to provide links such that if resolved elsewhere people don't waste time trying to answer for you here also.
    Remember people are posting here in their free time. Do not abuse that.
    Last edited by DonkeyOte; 12-02-2009 at 01:14 PM.

+ 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