Hide / unhide columns without using macros / VBA

sharshra

Active Member
Joined
Mar 20, 2013
Messages
276
Office Version
  1. 365
I have a simple requirement where I have to hide or unhide few columns based on cell value. I understand this can be done using VBA code. But wanted to know if it can be done using formula without using VBA code or recording a macro.

I´m looking for something like this to be done using formula & without using VBA -
Excel Formula:
Hide column D to F

If C3 = True
    Unhide column D
    <do something...>
Else Hide column D
End If

If C4 = True
    Unhide column E
    <do something...>
Else Hide column E
End If

If C5 = True
    Unhide column F
    <do something...>
Else Hide column F
End If

RLM - user group access rights.xlsx
BCDEF
2#True / False
31TRUEo
42FALSEnt
53FALSEewt
6oh
7r
8e
9e
Sheet4
Cell Formulas
RangeFormula
B3:B5B3=ROW()-2
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You can't with formula's. Only option besides VBA is Office scripts
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

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