Formula for making a checkbox that can show or hide content?

I have created a speadsheet for meal planning. I'd like to be able to check a box to show certain pre-determined content on the page. Is there a way to do this? For example, I have inserted a checkbox into cell C2. When it's selected, I'd like for my "Table 1" (can I rename these?) to show below. When I uncheck it, I want that Table to disappear. When I click another checkbox (C3), I want new content to appear. Understand if multiple checkboxes are checked, it would overlap, which is fine, I can just ensure I only click one at a time. Any suggestions? Thank you!!

Posted on Jan 5, 2020 9:40 AM

Reply
3 replies

Jan 5, 2020 6:45 PM in response to oHaveaGoodDay

Here's one way o getting close to what you want:

As can be seen from the message, there is a filter involved,

Checking the first box reveals T1 (note position of the column of numbers)]

Checking box 2 shows table T2

and checking box 3 shows table T3:

But none of the checks bring their table to the front, so the no rows meet the filter for two of the tables is always showing and blocking row 1 of the visible table.

Here's the man behind the curtain:

A hidden column D contains the formula shown. The filter rule applied is 'Show rows where the text in column D is "show".

(The 'no rows' message is not visible here because I'v moved this table away from the other two)


Regards,

Barry

Jan 6, 2020 5:46 AM in response to oHaveaGoodDay

Hi oHaveaGoodDay,


Following on from the previous replies, you could try this.

Table 1 that holds all your meal plans.


The single cell "Choose" table is a Pop-Up Menu





Formula in Table 1 cell C2 (and fill down) =IF(Choose::A$1="Show all meal types", "Show",IF(Choose::A$1=$A2,"Show",""))


Giving this


or this



Now apply a filter to Table 1



Or choose another Meal type in the Choose table



Regards,

Ian.


Edit: you can hide Column C in Table 1

Ian.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Formula for making a checkbox that can show or hide content?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.