+ Reply to Thread
Results 1 to 8 of 8

High light only "Expired" names that ARE NOT duplicates

  1. #1
    Registered User
    Join Date
    02-05-2024
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    High light only "Expired" names that ARE NOT duplicates

    question1.png

    Hello everyone ! Im new to excel MACRO and working on a project.

    I need to highlight "expired" names that are not duplicates. How can I tell my code to highlight non duplicate "expired" names?
    In the example above, I DO NOT want Lauren highlighted because she is a duplicate.




    Please Login or Register  to view this content.
    Last edited by AliGW; 02-21-2024 at 12:33 PM. Reason: Code tags added - please review the forum guidelines.

  2. #2
    Registered User
    Join Date
    12-07-2023
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    10

    Re: High light only "Expired" names that ARE NOT duplicates

    Just in case, do you really need a macro for this? You can do this with formulas
    Add an extra column with COUNTIF function, and calculated number of entries for each name
    Then set conditional formatting for rows where COUNTIF = 1 and Status = Expired.


    With a macro,you can do it with something this

    Please Login or Register  to view this content.
    Last edited by rpieuhtyelnekpmduz; 02-22-2024 at 05:18 AM.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: High light only "Expired" names that ARE NOT duplicates

    I think you could probably include the COUNTIF in the CF formula.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    02-05-2024
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: High light only "Expired" names that ARE NOT duplicates

    How would I code it or word it?

  5. #5
    Registered User
    Join Date
    02-05-2024
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: High light only "Expired" names that ARE NOT duplicates

    How would I code the count if into my formula?

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: High light only "Expired" names that ARE NOT duplicates

    This formula would likely do it for conditional formatting:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In the "applies to", either something like =$A$2:$C$1000 (or whatever row is low enough), or if the list will be really long and growing, you could use =$A:$C

    Conditional Formatting, New Rule, Use formula to determine chich cells to format, then paste the formula, click format, choose the fill tab, and pick your color. You can then edit the rule (manage), and edit the "Applies to" field
    Last edited by Arkadi; 02-21-2024 at 02:32 PM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  7. #7
    Registered User
    Join Date
    02-05-2024
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: High light only "Expired" names that ARE NOT duplicates

    I will try this when I get back to work. Thank you

  8. #8
    Registered User
    Join Date
    02-05-2024
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: High light only "Expired" names that ARE NOT duplicates

    I will try this out again, thank you

+ 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. [SOLVED] Formula to count "low", "med", or "high" in 4 columns of data split by fiscal quarter
    By Kerry1980 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-11-2022, 06:58 AM
  2. [SOLVED] Match Names and add "1" to duplicates
    By majime01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-28-2015, 04:09 PM
  3. [SOLVED] Reverse personal names from "First Last" to "Last, First" and accommodate middle names
    By MrGadget6977 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-17-2013, 07:10 PM
  4. Replies: 2
    Last Post: 09-25-2012, 12:53 AM
  5. Excel Function that differentiates "male" from "female" names with 900+ names
    By doylehargrove in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-17-2012, 06:00 PM
  6. "Expired" and "Live" dates.
    By Paul1234 in forum Excel General
    Replies: 2
    Last Post: 03-18-2010, 07:34 AM
  7. Macro that runs entered value through "low" and "high" range
    By Vika.F in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2005, 03:35 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