+ Reply to Thread
Results 1 to 4 of 4

To…IF…COUNT or Match that is the question.

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    2

    To…IF…COUNT or Match that is the question.

    I have a list of names in a column that I add to every month. I would like to find a way to turn the cell a color if the name has already appeared 2 times above already. I can turn the duplicates color, but that is not what I am trying to do. By turning the third “name” a color, it would indicate that the name has already qualified two times prior making the third entry not count.

    Date Name
    Jan-13 Smith,John
    Jan-13 Thomas,Larry
    Jan-13 Smith,John
    Feb-13 Doe,Jane
    Feb-13 Epps,Greg
    Mar-13 Smith,John - This cell would be colored

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: To…IF…COUNT or Match that is the question.

    Are the names going to be in 1 cell separated by Commas or in adjacent cells?
    Cheers!
    Deep Dave

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: To…IF…COUNT or Match that is the question.

    Assuming your first entry for the name column is cell B2:

    Select B2.
    Choose Conditional Formatting>New Rule.
    Select 'Use a formula to determine which cells to format'
    Type in the formula: =COUNTIF($B$1:B1,B2)>1
    Click on the Format button and then choose your formatting options (fill red for example)
    Click OK and OK again to finish.

    With B2 still selected click on the Format Painter. Then click on Col B (by clicking 'B' at the top). This will apply the formatting rule to the whole column for you.

    Note this will work on the 3rd 4th 5th duplicate etc etc. and assumes the whole name is in the one cell.
    Say thanks, click *

  4. #4
    Registered User
    Join Date
    07-16-2013
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: To…IF…COUNT or Match that is the question.

    Great, works perfect. Thank you so much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Index, match, match Question!. Seems so simple but can't figure it out...
    By huikimhuikim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 01:57 PM
  2. Replies: 5
    Last Post: 10-26-2012, 02:21 PM
  3. match(?) question
    By redneck joe in forum Excel General
    Replies: 2
    Last Post: 10-06-2010, 09:27 AM
  4. Match question
    By steven2225 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2007, 10:23 PM
  5. macro question and count question... thanks!
    By bstaff in forum Excel General
    Replies: 5
    Last Post: 02-07-2007, 10:12 AM

Tags for this Thread

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