Results 1 to 6 of 6

Thread: Excel Formatting/Formulas help

  1. #1
    Join Date
    Jul 2003
    Posts
    1,524

    Excel Formatting/Formulas help

    Hello everyone!

    I need some with conditional formatting in Excel. I have a lists of Cities and ID numbers. If an ID exists more than once for a city, then I want those entire rows to be highlighted.

    See below for an example of what I am talking about.
    http://amdusers.com/test.xls


  2. #2
    Join Date
    Mar 2006
    Location
    Nuneaton, UK
    Posts
    880
    I think you'd have to do this via a macro, which then has it's own issues with absolute cell referencing.

    Have a look on here:

    http://www.excelforum.com/

    Edit - you could do something like this http://www.contextures.com/xlCondFormat02.html and use = rather than <>



  3. #3
    NeoGen's Avatar
    NeoGen is offline AMD Users Alchemist Moderator
    Site Admin
    Join Date
    Oct 2003
    Location
    North Little Rock, AR (USA)
    Posts
    8,451
    I found this and it solved the problem:
    http://office.microsoft.com/en-us/ex...366161033.aspx

    After a few tries with your test worksheet, and setting the right fixed references, a formula worked.
    I selected the whole range you have there and applied the following formula in conditional formatting:
    =COUNTIF($K$2:$K$25;$K2)>1

    The result is that all lines that were painted yellow, became red (by conditional formatting). Check the attached file.
    Attached Files Attached Files

  4. #4
    Join Date
    May 2004
    Location
    Arlington, Texas
    Posts
    5,396
    You guys are a bunch of damn geniuses...

  5. #5
    Join Date
    May 2004
    Location
    Kent, UK
    Posts
    3,511
    Correct answer Neo, I love excel
    Darkness isn't there, but you can't see through it

  6. #6
    Join Date
    Jul 2003
    Posts
    1,524
    Thanks for the help. That did it!

Posting Permissions

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