+ Reply to Thread
Results 1 to 3 of 3

Highlight set of equal adjacent cells with shaded color

  1. #1
    Forum Contributor
    Join Date
    11-06-2021
    Location
    Tripoli
    MS-Off Ver
    Still using 2007 in 2023
    Posts
    289

    Talking Highlight set of equal adjacent cells with shaded color

    Hello guys,
    I hope you are all doing great.
    I have in column A, a set of names that may have equal duplicates only in adjacent cells of th same column.
    I want to discrimate rows based on the cells of column A, on the basis of equal cells grouped together.
    Please refer to my excel sheet to see how coloring should work.
    I am open to any kind of solution even if it was a formula in another column, by which i would apply filter on it.
    I am grateful for any kind of assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,337

    Re: Highlight set of equal adjacent cells with shaded color

    Helper in column E

    i E2 and copy down

    =IF(COUNTIF($A$2:A2,A2)=1,E1+1,E1)

    CF

    =ISODD($E2)

    Applies to: $A$2:$D$1000
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,835

    Re: Highlight set of equal adjacent cells with shaded color

    VBA option:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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] mark color for not matched items for adjacent cells based on another adjacent cells
    By tubrak in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-14-2022, 08:02 AM
  2. Need vba code to color cells and change color if not equal as text from cell
    By FvdF in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2020, 08:45 AM
  3. Count equal and adjacent cells
    By Nuroo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-18-2020, 04:30 PM
  4. counting in a data set if adjacent cells are equal
    By ed nott in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2018, 07:55 AM
  5. Replies: 2
    Last Post: 09-11-2017, 03:42 PM
  6. Replies: 11
    Last Post: 01-02-2015, 09:21 PM
  7. [SOLVED] Shaded cells changing color for no reason
    By VA in forum Excel General
    Replies: 0
    Last Post: 12-02-2005, 03:45 PM

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