+ Reply to Thread
Results 1 to 11 of 11

Find exact value and change font colour

Hybrid View

  1. #1
    Registered User
    Join Date
    06-21-2007
    Posts
    17

    Find exact value and change font colour

    hi guys, i m new to this forum.

    Currently I am working on a project to analysis the production process of a factory. How to make excel find the same value and change the font colour of both cell?

    e.g.

    colum A contains a list of item code. (yh1234-kw)
    if an exact item code being input in the same colum (A), both cell contains the item code will change its colour to red (i mean the font colour).

    Anyone know how to do it? I am guessing it could be done by VB.. but i have no idea about VB

    Thx in advance

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this with Conditional formatting,

    Select your range of data in column A, go to Format > Conditional formatting, select Formula is and insert

    =COUNTIF($A$1:$A$100,A1)<>1 then format your font to RED or whatever.

    This will hightlight any duplicates in the same column. Adjust the range to suit your range.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    06-21-2007
    Posts
    17

    Thx for the help

    Thanks for thr reply. But it doesnt work on my worksheet..
    It's more like randomly turns the data into red. But not turn all duplicates into red.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this, see if this works

  5. #5
    Registered User
    Join Date
    06-21-2007
    Posts
    17
    your attached file works perfect. However when i try to apply the formula to my worksheet, it doesnt work perfectly.

    I attached the worksheet I am working on. I input the conditional formatting for colum C. Can you please check what I've done wrong?
    Attached Files Attached Files

  6. #6
    Forum Contributor vikas.bhandari's Avatar
    Join Date
    04-07-2006
    Location
    Delhi, India
    MS-Off Ver
    Office 2007 and 2010
    Posts
    303

    Talking

    Quote Originally Posted by ExcelecxE
    your attached file works perfect. However when i try to apply the formula to my worksheet, it doesnt work perfectly.

    I attached the worksheet I am working on. I input the conditional formatting for colum C. Can you please check what I've done wrong?

    You have mentioned the formula as =COUNTIF($C$1:$C$1000,C65536)<>1

    please change it to =COUNTIF($C$1:$C$1000,C1)<>1

    It will correspond the c1 to c1 and c2 with c2 and so on and will give the correct values.

    Vikas B

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Quote Originally Posted by ExcelecxE
    your attached file works perfect. However when i try to apply the formula to my worksheet, it doesnt work perfectly.

    I attached the worksheet I am working on. I input the conditional formatting for colum C. Can you please check what I've done wrong?
    The problem here is that you have headers at the top, so you will need to adjust the formulas accordingly. But first, cell A1 is a merged cell, remove CF from that cell. You have also set CF to column A from A4:A1000, do you want it on column A?

    If so select those cells and change the formula to

    =COUNTIF($A$4:$A$1000,A4)<>1

    The same applies to column C, so change those to C4:C1000

    =COUNTIF($C$4:$C$1000,C4)<>1

    It should work OK then. Let me know how you go?

+ 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