+ Reply to Thread
Results 1 to 5 of 5

Formula to hightlight duplicated entry

  1. #1
    Registered User
    Join Date
    10-08-2009
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Lightbulb Formula to hightlight duplicated entry

    Hello,
    Im a newby to excel and learning formulas at present.

    -I have a column in spread sheet.
    -The purpose of this column is to enter a product code on each row of this column.
    -The column in theory should only have each product number entered once.
    -So i am trying to find a formula to avoid any code being entered more than once.
    -As we are visually checking this column to make sure that the product code is only entered once, we have had a few instances of human error, so i am looking for a formula that will highlight the code in red if it has already been entered ( so highlighted in red will be both the same codes, so visually we will be able to identify code entry error)

    - I hope this is clear as im new to excel. Any help would be much appreciated.

    Cheers

    Joel

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Formula to hightlight duplicated entry

    Hi,

    with your code in column A, use this in conditional formatting for column A

    =COUNTIF($A:$A,A1)>1

    Step by Step:

    Select column A by clicking the column header
    Click Format - Conditional Formatting
    Select "Formula is" in the first box
    enter the formula in the formula box
    select a format
    hit ok
    Last edited by teylyn; 10-08-2009 at 05:04 PM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to hightlight duplicated entry

    Select the range and go to Format|Conditional Formatting

    Select Formula Is from the first dropdown menu and enter formula:

    =Countif($A$1:$A$100,$A1)>1

    where A1:A100 is the range you selected with A1 being at the top. Adjust as necessary.

    Click Format and choose colour from Pattern tab.
    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.

  4. #4
    Registered User
    Join Date
    10-08-2009
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Formula to hightlight duplicated entry

    I have just tried the formula on a blank sheet. it works fine.

    When i ad it to my existing sheet, into my scrolling coloumn it doesnt work so well.

    Any ideas?

    Your help would be much appreciated

    Joel

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Formula to hightlight duplicated entry

    Hi again.

    it doesnt work so well.
    Can you elaborate? Maybe post a workbook with a data sample.

+ 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