You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Toggle row visibility in Numbers possible?

Let's say I have a 1,300 row Numbers spreadsheet to keep track of books owned / read.


Some authors appear once. Some authors appear 40 times.


Is there a way of hiding the 40 books by a certain author so their name appears just once in the list, to make scrolling faster/easier?


So in the example below, Billingham, Block, Booth, Box & Boyd all appear once, but when their name is selected, all their entries appear?


(I know that I can use Find to search, but would prefer to toggle their visibility, especially on my iPhone.)


Thanks.


MacBook Air 13″, macOS 13.2

Posted on Mar 10, 2023 5:08 AM

Reply
14 replies

Mar 10, 2023 6:16 AM in response to Jagmurcredrea


I added a new column, column I


I1 is a checkbox. Checked = show all rows. Unchecked = show only the first occurrence of the author's name (provided the table is sorted by name)


Formula in I2 =IF(AND(D2=OFFSET(D2,−1,0),E2=OFFSET(E2,−1,0), I$1≠TRUE),FALSE, TRUE)

Fill down to complete the column

The formula requires the table to be sorted by author.


Put a filter on column I as shown in the screenshot.


I could have used the more simple formula =IF(AND(D2=D1,E2=E1,I$1≠TRUE),FALSE, TRUE) but this one can get messed up if you drag rows around or insert or delete a row. The formula I suggest does not rely on cell references to any row but its own so it does not have those problems.


To clean it up you can make column I text color white or set the text opacity to zero so you don't see all the trues and falses. Or you could use a word such as "Filtered" instead of TRUE, a null string "" instead of FALSE, and change the filter to be "text is 'Filtered' ". That way it will be more obvious that the results are being filtered.

Mar 10, 2023 6:28 AM in response to Jagmurcredrea

You might also want to consider using the Categories feature with categories for last name and first name. Then you can collapse the entire thing to just the names with a simple option-click on a disclosure triangle (I assume the iOS version has something equivalent to option-click). You won't need column I or formulas (though they are in the screenshots below). You can switch Categories on and off pretty easily to get back to the original tabular look.



Mar 10, 2023 11:11 AM in response to Badunit

Thanks for the suggestions!


Your filter version certainly works brilliantly in terms of opening up rows to reveal multiples, but it's not helping in the sense that if I scroll down to an author with first letter "T" and click the check box, the spreadsheet opens up, but suddenly I'm in the "F"s... so then I have to scroll again, back to the "T"s.


Is there a tweak for that? (I am ashamed to say that I'm a basic user only!)


Your Categories suggestion works also, but as you suggest, but not in iOS, sadly. 🥲



Mar 10, 2023 7:01 PM in response to Jagmurcredrea

How many rows is your table going to be, maximum? I've come up with a few ways to make it work like you want but Numbers gets painfully slow and pretty much unusable with too many of some functions. OFFSET is one of them. Other functions I'd like to use like COUNTIFS get very slow when the number of rows to be looked at gets large. I've been beating my head against the wall trying to come up with something that will be usable.

Mar 11, 2023 6:46 AM in response to Jagmurcredrea

Jagmurcredrea wrote:

Your Categories suggestion works also, but as you suggest, but not in iOS, sadly. 🥲


Are you having trouble using Categories on the iPad? Just tap at the column letter, choose Column Actions, and Add Category for ... I did that on the column with the last name of the author, and it works well.


SG

Toggle row visibility in Numbers possible?

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