+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting toggle on/off

  1. #1
    Registered User
    Join Date
    04-29-2019
    Location
    Hampshire, England
    MS-Off Ver
    2018
    Posts
    43

    Conditional Formatting toggle on/off

    Is there a way to switch text data on and off with a click box?

    I have worked out how to drop the cell colour within the cell to only show the text, but I want to be able to only show the colour of the cell and not the text.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting toggle on/off

    1. Your green formula should be >= 20 not just > 20
    If the value is 20 nothing will be set in CF.

    2. Your CF conflicts with your data.

    CF will only be set if there is a value in the cell.
    But if you have a value in the cell then text will obviously show.

    Change your CF formulas to

    =AND(H1=TRUE,SUM(B3:D3)>20) format green

    Copy this formula two more times for the other colours, amending the SUM part as necessary.

    3. Change the cell formula to IF(H1=FALSE,SUM(B3:D3),"")
    Copy the formula to the other cells.

    So CF is no longer dependent on the value in the cell, it relies on the SUM() directly and the formula in the cell is dependent on the value in H1 as to whether text shows or not.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting toggle on/off

    You could also change the CF font color to match the CF fill color.

    This will leave the numbers in the cells but you won't be able to see them.

  4. #4
    Registered User
    Join Date
    04-29-2019
    Location
    Hampshire, England
    MS-Off Ver
    2018
    Posts
    43

    Re: Conditional Formatting toggle on/off

    Hi, thanks for your help

    I have tired to follow your guidance but it doesn't seem to have worked for me. Cheeky I know but would you be able to edit the sheet I attached so I can see how it works?

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting toggle on/off

    Is not cheeky, it's only a tiny amount of data.

    Does this work how you want?

    I've left your original CF in.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-29-2019
    Location
    Hampshire, England
    MS-Off Ver
    2018
    Posts
    43

    Re: Conditional Formatting toggle on/off

    That is exactly how I wanted it to be thanks. I can see where I was going wrong now.

+ 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. Replies: 0
    Last Post: 02-25-2016, 10:22 PM
  2. Enable & disable conditional formatting using toggle button
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-16-2015, 01:50 PM
  3. [SOLVED] Toggle Conditional formatting with check box
    By Johnnyv015 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2015, 06:43 PM
  4. [SOLVED] Conditional Formatting based on formulas (with an ON/OFF toggle)
    By macrorookie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 08:47 PM
  5. Toggle Conditional Formatting Rule On/Off w/ button
    By Clarkit in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-29-2014, 05:44 AM
  6. Toggle one conditional formatting rule on off using VB
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2013, 10:56 AM
  7. Make conditional formatting toggle with drop-down menu
    By hopalong in forum Excel General
    Replies: 2
    Last Post: 02-29-2012, 04:16 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