+ Reply to Thread
Results 1 to 3 of 3

Coloring cells based on random number values within a column.

  1. #1
    Registered User
    Join Date
    12-26-2015
    Location
    Las Vegas
    MS-Off Ver
    2013
    Posts
    56

    Coloring cells based on random number values within a column.

    Hello again. I'm back because you people are awesome.

    I attached the file I need help with along with a picture below

    What I need to do is assign a different color for every different random value, but say I don't know how many values I have in total... and also could be any number value. So Since I don't know how many different values I have in the column I would like excel to figure it out and assign a random color for each value found accordingly.

    Say there's 20 #11 that would be green while 45 the #33 would be blue and on and on and on... and every time I ran the macro the colors would be different each time but coloring similar values the same color in an effort to make it easy to see. (I already have the code for sorting smallest to biggest)


    Capture.PNG

    colors.xlsm

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Coloring cells based on random number values within a column.

    Try running this on your worksheet:
    Please Login or Register  to view this content.
    You may get similar colours, but will not get the same colour.

    Note: it is assumed your data is already sorted
    Last edited by millz; 12-27-2015 at 10:33 PM.
    多么想要告诉你 我好喜欢你

  3. #3
    Registered User
    Join Date
    12-26-2015
    Location
    Las Vegas
    MS-Off Ver
    2013
    Posts
    56

    Re: Coloring cells based on random number values within a column.

    Flawless. Absolutely amazing!

    When applying to my actual macro all I had to do was change which column the color macro ran on!

+ 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. Return 3 values from column based on random value but with exlusion criteria
    By anxiolydiot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-29-2015, 07:32 AM
  2. [SOLVED] Coloring rows of cells based on certain cell values
    By tottieon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2014, 01:00 PM
  3. [SOLVED] Conditional Formatting - Coloring Cells based on Values
    By desibabuji in forum Excel General
    Replies: 8
    Last Post: 11-22-2013, 12:31 PM
  4. Replies: 0
    Last Post: 08-07-2012, 11:28 AM
  5. Dynamically displaying cells based on a random number
    By Spikkle in forum Excel General
    Replies: 7
    Last Post: 01-24-2012, 03:33 PM
  6. Add Random Number in a Column based on defined Number in another Column
    By Pack Dog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2010, 05:09 AM
  7. [SOLVED] Conditional coloring of Excel cells, based on adjacent cell values?
    By Greg Stuart in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-10-2006, 06:20 PM

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