+ Reply to Thread
Results 1 to 12 of 12

Conditional Formatting - Traffic Lights issue

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Post Conditional Formatting - Traffic Lights issue

    Hello,

    I have a conditional formatting rule to display 3 Traffic Lights when the criteria is either R, A, G. In Sheet 1, A1:A4 is the criteria range and B1:B4 is where is traffic lights appear.

    Now the issue is if i copy the formula beyond B4 to B5 and if the corresponding cell A5 does not have any value the traffic lights for the entire B column goes away. Is it possible to keep the cell in B column blank (while formula applied) if no value is present in A and also ensuring the traffic lights for B column does not get distorted?

    I have used MATCH formula in column B which is as follows =MATCH($A1,{"G","A","R"},0)-2

    Attaching the document (Sheet 1 & Sheet 2) for reference. Please help.

    Regards,
    SachinTraffic Lights.xlsx
    Last edited by sachins19; 07-03-2014 at 04:37 AM.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Formatting - Traffic Lights issue

    Hi,

    Something like this?

    Regards,
    Chandra
    Attached Files Attached Files

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Conditional Formatting - Traffic Lights issue

    Conditional Format applied to the Range $B$1:$B$13 change it as $B$1:$B$4
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    04-27-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Conditional Formatting - Traffic Lights issue

    Thanks Chandra, this solved my problem.

    Quote Originally Posted by cbatrody View Post
    Hi,

    Something like this?

    Regards,
    Chandra

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Formatting - Traffic Lights issue

    You are welcome

  6. #6
    Registered User
    Join Date
    04-27-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Post Re: Conditional Formatting - Traffic Lights issue

    I actually have a related query now. Sorry about not having asked before.

    I am trying to run an advanced filter query to display rows based on the RAG status (B11). However in column B the underlying values of traffic lights (B2:B5) is -1,0,1. I have formatted the cells (B2:B5) using custom ("Red";"Green";"Yellow").

    Is there a way i could use (Red, Green and Yellow) as a data validation list in the cell B11 instead of (-1,0 and 1) to make the advanced filter functionality work?

    Regards
    Sachin
    Attached Files Attached Files

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Formatting - Traffic Lights issue

    Please see the attached file.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-27-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Conditional Formatting - Traffic Lights issue

    Just checked the file. Tried running advanced filter. It works. However when you add more rows the dropdown list (B11) will increase and does not remain unique. It will show mutilple entries for Red, blue and Yellow. However a list for data validation also does not serve the purpose. Any suggestions?

    Thanks Chandra!!
    Last edited by sachins19; 07-03-2014 at 06:49 AM.

  9. #9
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Formatting - Traffic Lights issue

    Please check the attached file.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-27-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Conditional Formatting - Traffic Lights issue

    I see you have removed the data validation from cell D14. In that case, the dropdown cannot be used and considering this how do you input the criteria in D14?

    I do realize i am asking too many questions but i know i am very close to getting this resolved.

    Regards,
    Sachin

  11. #11
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Formatting - Traffic Lights issue

    Data validation is there in D14, its connected to Sheet2. Advanced Filter is working fine for Red, Green & Yellow.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    04-27-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Conditional Formatting - Traffic Lights issue

    Thanks Chandra!!

+ 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. Training matrix traffic lights conditional formatting
    By buju247 in forum Excel General
    Replies: 6
    Last Post: 11-29-2013, 05:44 AM
  2. Conditional Formatting- Traffic Lights - Using Formulas
    By Nikki Fox in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-21-2013, 10:50 AM
  3. [SOLVED] Formatting with traffic lights
    By marreco in forum Excel General
    Replies: 7
    Last Post: 07-13-2013, 10:08 AM
  4. Traffic Lights - Conditional Formatting
    By Moe2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 01:42 AM
  5. Traffic Lights
    By Pedro Serra in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2006, 08:10 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