Reputation: 601
I have a requirement where I need to either show or hide entire table (in cells N47 - S52) based on the value of a cell in P35
Ex : If P35="Yes", show entire table, else hide entire table
I can apply the formula for each cell seperately, but is there a way to do it at once?
Upvotes: 0
Views: 5538
Reputation: 484
Here is one way to go about it, with the below assumptions that:
Step#1: Set up a table in a separate worksheet (Sheet2). Check the table name in Design tab (Excel 2016) on the top left corner while one or more cells of your table is selected. in our example below it is Table1 (default).
Step#2: Next, select the block of cells in Sheet1 where you want your table to "appear"/"disappear" (In this example it is Sheet1 B2:D5) and while you have the selection on, press F2, to enter the below formula in one of the cells. Once done, hit Ctrl+Shift+Enter to enter this as an array formula.
=IF(G2="Yes",Table1[#All],"")
So when G2="Yes"
, your table will be visible, any other values and it will disappear!
Upvotes: 1