conditional format

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
250
Office Version
  1. 365
Platform
  1. Windows
I want to write a conditional format,

If column "C" is empty or "0" then hide column "B" and column "D"

MulitpleForm.xlsm
ABCDEFGH
1Good morning,
2
3The following inspection buses were released for AM service requirements
4
5Unit0Confirmed compliant for mileage and date
6Unit0Confirmed compliant for mileage and date
7Unit0Confirmed compliant for mileage and date
8Unit0Confirmed compliant for mileage and date
9Unit0Confirmed compliant for mileage and date
10Unit0Confirmed compliant for mileage and date
11Unit0Confirmed compliant for mileage and date
12Unit0Confirmed compliant for mileage and date
13
14Thank you
15
Spare Email
Cell Formulas
RangeFormula
C5:C12C5='Spare Units'!C6
 
For any sort of automation to hide rows, you would need VBA.

To leave the rows there and just hide the text, you can use Conditional Formatting. Here are the steps:
1. Select the rows you want to apply it to (in your example, rows 5-12)
2. Go to Conditional Formatting
3. Select "New Rule"
4. Select "Use a formula to determine which cells to format"
5. Enter the following equation:
Excel Formula:
=OR($C5="",$C5=0)
(note how the row number in this formula MUST match EXACTLY the row number of the first row selected in step 1)
6. Click on the Format button
7. Go to the Font tab
8. In the Color box, select the white color
9. Click OK

That should do it.
 
Upvote 0
Solution

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,215,098
Messages
6,123,082
Members
449,094
Latest member
mystic19

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