+ Reply to Thread
Results 1 to 3 of 3

Coloring Like Rows Non-Repeating

  1. #1
    Registered User
    Join Date
    03-20-2020
    Location
    Maywood, USA
    MS-Off Ver
    2016 & 365
    Posts
    10

    Coloring Like Rows Non-Repeating

    Background:
    I have a workbook that has a huge list of supplies. Each supply has a name and certain supplies are part of a family while others are standalone items. Everything on the list is sorted primarily by family name. Each item in the same family must be highlighted with the same color for each row. The colors can't be repeat back to back [example: Family A is red so Family B can't be red]

    The issue:
    I created a crude formula that identifies supply families 1-7 and each number corresponds to a different color in conditional formatting. The main issue is that rows get swapped around or are inserted in the middle of the table. This causes the relative reference in the formula to break. I originally attempted to solve this with vba by having the formula re-applied to the column down whenever a row is inserted. The issue is that the real file is several thousand rows which either causes the file to slow down immensely or border-line crash.

    I was looking if there was another solution that I didn't consider whether it be formula based or not.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Coloring Like Rows Non-Repeating

    Using O365 (which your profile shows that you have...):

    =LET(A,[Supply Family],B,SORT(UNIQUE(FILTER(A,A<>""))),IFERROR(MATCH([@[Supply Family]],B,0),""))

    This sorts them in alphabetical order, so the family numbering is ALWAYS in alpha order. see file.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    03-20-2020
    Location
    Maywood, USA
    MS-Off Ver
    2016 & 365
    Posts
    10

    Re: Coloring Like Rows Non-Repeating

    Dear Glenn,

    Ah. That is a clever way of doing it. Usually when I use sort and unique, it is to provide a list. That is very clever way of going about it, and your help is greatly appreciated.


    Ethan

+ 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. moving and coloring rows by date
    By lewashby85 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-09-2017, 03:45 PM
  2. Waterfall Chart with automatic coloring and text coloring
    By amartino44 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-19-2013, 05:54 PM
  3. Coloring rows by value
    By little_ghost in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 09:01 AM
  4. Coloring multiple rows
    By Anders.Hoejlund in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-20-2010, 09:42 AM
  5. Coloring rows of cells
    By [email protected] in forum Excel General
    Replies: 2
    Last Post: 06-01-2006, 03:50 PM
  6. Coloring rows in excel
    By Kjetil in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2005, 10:40 AM
  7. coloring in rows
    By koba in forum Excel General
    Replies: 9
    Last Post: 11-10-2005, 02:00 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