+ Reply to Thread
Results 1 to 15 of 15

Traffic light options

  1. #1
    Registered User
    Join Date
    11-26-2017
    Location
    Sleaford UK
    MS-Off Ver
    2016
    Posts
    35

    Traffic light options

    I have a spreadsheet that runs various macros and formulas and is used by multiple people as an info source and thus protected to prevent meddling and error creep.
    My manager wants to traffic light (red, amber, green) a set of text based cells (names of individuals) to indicate outcomes

    When the sheet is in protected mode, the ability to shade the cells is greyed out, so what I'm looking for is a way to shade a cell with preset colours whilst the sheet is protected,

    I know i could use a separate column with R, A, G text conditionally set using text & fill colours but i don't really have the on screen space and its busy enough already

    I've attached an unlocked copy to play with, names are ficticious and its this column that the boss wants to RAG

    Any thoughts would be greatly appreciated
    Attached Files Attached Files
    Last edited by stevejd58; 03-27-2021 at 06:15 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Traffic light options

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Traffic light options

    could you use Conditional formatting?
    Maybe not testing the cells content by test using a formula.

    It's not clear what causes a change in the RAG status, especially if the sheet is protected.
    If it is a result of some code being run could the code not unprotect the sheet, apply formatting and then apply protection?
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    11-26-2017
    Location
    Sleaford UK
    MS-Off Ver
    2016
    Posts
    35

    Re: Traffic light options

    I had thought of conditional formatting but I can't see how name data would initiate a fill change
    The decision to change RAG status is based on a team decision
    I know it can be done by unlocking , shading and relocking but the risk of forgetting to protect and the settings being messed up or incorrect paswords being set and no one remembering what they actually inputted is high (creates too much work for me to sort it al out)

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Traffic light options

    I was suggesting the code handled all that, not a user.

    You need to explain the workbook you posted. What cells should be filled and under what circumstances?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Traffic light options

    Which column is being RAG rated? If this is something that is NOT based on values in the workbook, then you can't use conditional formatting unless you add an editable column somewhere that contains a manually-entered value that triggers the formatting. This might be safer than what you do currently.

  7. #7
    Registered User
    Join Date
    11-26-2017
    Location
    Sleaford UK
    MS-Off Ver
    2016
    Posts
    35

    Re: Traffic light options

    Sorry, its the patient name column that the boss wants to RAG rate instead of a plain white text filled cell as it is at the present
    There are no parameters other than a team based decision as to what RAG rate a person has.

    If it wasnt for protection it would be simple to shade but past experience shows that letting nurses with little excel skill on a unprotected sheet makes a lot of work for me

    Its a work round for the greyed out shade icon i need whilst retaining the protection
    Last edited by stevejd58; 03-27-2021 at 06:22 AM.

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Traffic light options

    Given there is no logic to the RAG why not protect the sheet but leave that column unlocked? edit: I see you already have that.

    I don't have 2016 to check by 0365 protect allows formatting of cells on protected sheet

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Traffic light options

    OK, so here's what I'd do:

    1. Add a very narrow, editable column to the right of the patient name column and apply a drop-down box with a selection of numbers or letters (maybe R, A and G).
    2. Set a formula CF rule for each colour along the lines of: =$D5="R" for red, =$D5="A" for amber and =$D5="G" for green.

    This way they can't mess anything up and it's a simple mouse click to apply the correct RAG colour.
    Last edited by AliGW; 03-27-2021 at 06:34 AM.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Traffic light options

    Example of what I'm suggesting attached.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-26-2017
    Location
    Sleaford UK
    MS-Off Ver
    2016
    Posts
    35

    Re: Traffic light options

    Thanks, will have a look monday and feedback

  12. #12
    Registered User
    Join Date
    11-26-2017
    Location
    Sleaford UK
    MS-Off Ver
    2016
    Posts
    35

    Re: Traffic light options

    just to refresh my memory
    is that CF - new rule - use formula to determine - =$D5="R" - apply same with A & G
    use copy and format paste into the cells of the lower section

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Traffic light options

    Almost - select C5 - set the rule and use the Applies to box to set the range or ranges to which it needs to apply. This is more reliable, I find. Three rules - one per colour.
    Last edited by AliGW; 03-27-2021 at 12:22 PM.

  14. #14
    Registered User
    Join Date
    11-26-2017
    Location
    Sleaford UK
    MS-Off Ver
    2016
    Posts
    35

    Re: Traffic light options

    Worked a treat. Many thanks AliGW

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Traffic light options

    No problem.

+ 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] Traffic Light Query
    By ejsdon in forum Excel General
    Replies: 3
    Last Post: 07-16-2017, 02:59 AM
  2. Traffic Light formatting
    By wysbob in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2016, 03:21 AM
  3. Traffic Light Formating
    By Shanethompson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-03-2015, 05:30 AM
  4. Traffic Light Chart
    By YorkeG in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-16-2015, 12:11 PM
  5. [SOLVED] Traffic Light Icons
    By Blake 7 in forum Excel General
    Replies: 4
    Last Post: 02-11-2013, 10:12 PM
  6. Please help with traffic light problem.
    By t0n1c in forum Excel General
    Replies: 0
    Last Post: 01-20-2012, 12:13 PM
  7. traffic light function?
    By Kees Korver in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-11-2010, 01:25 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