Hiding Text With Conditional Formatting or better solution?

slam

Well-known Member
Joined
Sep 16, 2002
Messages
871
Office Version
  1. 365
  2. 2019
I have some conditional formatting on a worksheet called R1 that changes the font color of G39 and H39:J39 (merged) if either of these conditions are met:

Setup!B5 = "No"
Setup!B5 = "Yes" AND Setup!B6 = "No"

The format change is that the font color changes to match the Fill color so that the text is essentially invisible.

The text remains invisible unless some cells are selected, in which case the Excel cell highlighting indicating they're selected, makes the text slightly visible due to the color change from selected cells.

This is an issue, because our process involves selecting a bunch of cells on the worksheet, and pasting them into MS Paint, to create a jpg of the sheet to post onto a forum on the internet.

Is there a better solution than my conditional formatting?

Thanks

EDIT: I should add, G39 is just text, but the merged H39:J39 is a data validation list pointing to Setup!H2:H21
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Use a conditional number format. Change it to Custom and set the rule to change the format format the cell as "";"";"";""

You can likely eliminate your white text formatting rule.
 
Upvote 0
Use a conditional number format. Change it to Custom and set the rule to change the format format the cell as "";"";"";""

You can likely eliminate your white text formatting rule.

Perfect! What exactly does that custom format mean in Excel terms? Thanks
 
Upvote 0
There are four sections and they relate as follows:

Positve;Negative;Zero;Text

So in the above example, it will blank out all of those, but you can tweak it depending on your needs:

$0.00;"< $0";"$0",@

Therefore, it will format any positive number as currency, any negative number will just display "< $0", but the real number is still there to do math on, the "$0" will just show that, and eliminate the two decimal format that the positive shows, and the @ means that if there is text in the cell, it won't override it. Trial and error. You can also use [RED] and [GREEN] to have the conditional formatting built into the number format.
 
Upvote 0
Thank you for the explanation. Much better than my original "solution" :)
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top