+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting relating colours to numbers

  1. #1
    Registered User
    Join Date
    10-17-2018
    Location
    Plymouth
    MS-Off Ver
    Excel 2021
    Posts
    96

    Conditional Formatting relating colours to numbers

    Hello.

    I have built an input channel list for use in the audio industry. you will see in the second column (Stagebox/Patch) a numbers and a colour. the numbers are not decimal but instead duodecimal.

    I have three stage boxes with 12 inputs each and these are represented as
    1.1 - 1.12
    2.1 - 2.12
    3.1 - 3.12
    Furthermore the stage boxes are colour coded and this is represented on the sheet also with
    Stagebox 1 - Green
    Stagebox 2 - Red
    Stagebox 3 - Blue

    I have completed the sheet as I would like it but I would like the colour filling to be automatic on selection of the number.

    There is data validation used on this sheet which limits selections. These can be found hidden on sheet 3.


    Kind Regards
    Alex Abbey


    PS if it's not too much trouble, an explanation of how it was done would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Conditional Formatting relating colours to numbers

    so basically 3 different colors based on the first digit?
    select the range you want to apply to (say from B2:B24)
    go to Home tab -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =LEFT(B2)="1"
    format color as green

    repeat the steps but formula for red and blue to be:
    =LEFT(B2)="2"
    =LEFT(B2)="3"

    LEFT extracts from left to right. it has a 2nd argument which is optional (default is 1). i can actually identify how characters i want to extract. so LEFT(B2,2) would be "1."

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-17-2018
    Location
    Plymouth
    MS-Off Ver
    Excel 2021
    Posts
    96

    Re: Conditional Formatting relating colours to numbers

    Thanks. problem solved and thanks for the extra info.

+ 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. Conditional formatting blank cells relating to dates
    By -jack in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2016, 08:24 PM
  2. [SOLVED] Conditional Formatting - Colours
    By caziscarol in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2014, 05:59 PM
  3. [SOLVED] Conditional formatting relating to a set of dates
    By CTCoperations in forum Excel General
    Replies: 6
    Last Post: 07-06-2012, 04:03 AM
  4. Macro for formatting fonts and cell colours - not Conditional Formatting
    By Kayaness in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2011, 03:46 AM
  5. Conditional Formatting relating to dates
    By Larph in forum Excel General
    Replies: 2
    Last Post: 09-11-2010, 02:27 PM
  6. conditional formatting 3 or more colours in 2 columns
    By dipak chauhan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-24-2009, 10:44 PM
  7. [SOLVED] Conditional Formatting Counting Colours
    By DMc2004 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2005, 10:06 AM

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