hiding colums using conditional formatting

robertvdb

Active Member
Joined
Jan 10, 2021
Messages
327
Office Version
  1. 2016
Platform
  1. Windows
I have a Sheet on which I want to hide specific columns, depending on a specific cell value. See enclosed image.

I know I can do this using VBA, that should be a piece of cake, but since the file will be on SharePoint, I can't use VBA.

Anyone knows how to achieve this through Conditional Formatting ?

Thanks.
 

Attachments

  • hide_columns.png
    hide_columns.png
    28.7 KB · Views: 24

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You cannot hide columns using conditional formatting. You either need to do it manually, or with code.
 
Upvote 0
You could use Conditional Formatting to "hide" all the entries in that column (i.e. change the font color to white so that it blends in with the background), but not physically hide the column, as Fluff said.

To "hide" the entries in the column, just select columns B:F, and then use the following CF formula:
Excel Formula:
=B$2="no"
and then choose the white font color for your formatting option.
 
Upvote 0
Solution
Thanks Fluff and Joe4. That SharePoint thing is a pain in the ***, I think. I'll use Joe's solution as a best alternative.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,155
Messages
6,123,332
Members
449,098
Latest member
thnirmitha

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