Numbers pull data from another sheet based on text criteria

Hi,


I have a master list of clients, each with a Status (active, inactive, new). If Sheet 1 contains the entire list, I want Sheet 2 to show just Active, Sheet 3 to show just Inactive, and Sheet 4 to show just New. Right now, I have a "bandaid" temporary solution that is Sheet 1's content duplicated with filters into Sheets 2-4, the issue is that I need Sheets 2-4 to auto-update as I add/edit the data in Sheet 1. They are static right now, and I need them to be dynamic.


Example 1: If I change an "Inactive" client to "Active" on Sheet 1, that client's row of information needs to leave Sheet 3 and go to Sheet 2.


Example 2: If I add a new row of client information to Sheet 1 and give them the status of "New", their row of information needs to automatically fill into Sheet 4.


This seems like it should be an easy fix, but I just cannot figure out how to make it happen.


Thanks!

iMac 21.5″, macOS 10.15

Posted on Feb 2, 2024 2:23 PM

Reply

Similar questions

4 replies

Feb 2, 2024 8:09 PM in response to kl_mc

KL,


I've done several similar solutions over the years, so it doesn't seem difficult or complex to me. It's a small investment up front, but you'll get exactly what you described. Here are the basic of the approach, and I'll write the expressions for you tomorrow, if you can wait. It's lights out time here.


We will add two columns to the master table, one for "Inactive" and one for "New", and they can be hidden. For each "Inactive" entry the new "Inactive #" column will calculate the number of such entries to that point in the Master Table. Similarly for the "New" entries. In your Inactive Sheet, the first body row will pull in the #1 inactive entry in the Master Table, and so on down the Inactive table rows. Similarly for the New entries.


Regards,


Jerry

Feb 2, 2024 7:04 PM in response to kl_mc

In Numbers, sheets contain a blank canvas on which you place tables, charts, and other objects. So by Sheet 1, etc., do you mean Table 1, etc?


There are ways to automate updating a table based on values in another table. But these typically involve the use of additional index columns and complicated formulas to look up values based on those indexes. Most of these approaches are not sort safe.


In my experience what you are already doing is a more efficient approach than trying to make a spreadsheet behave like a database app. It takes a second or two to apply a filter, another few seconds to copy-paste the filtered results into another table.


If your ultimate goal is to calculate counts or sums of subsets of your data, then leaving the data together in the original table and creating a Pivot Table. That only takes a few seconds.


Create a pivot table in Numbers on Mac - Apple Support


Also consider using the powerful Categories feature:


Intro to categories in Numbers on Mac - Apple Support


In the built-in templates at File > New in your menu you can find working examples of each of these approaches: 'Pivot Table Basics' and 'Categories'.


SG



Feb 2, 2024 8:35 PM in response to SGIII

For context, I used to do those database-type hacks myself, and thought they were pretty neat. But that was in the days before I understood how powerful and flexible filters were, and before Numbers adopted Pivot Tables (which have been around in Excel for 30 years, and are true time savers).


I've found that trying to make a spreadsheet act like a database can be fun, but generally doesn't pay off, especially when you count the time debugging the hack and reconstructing it when it breaks, or trying to make it sort-safe.


It is so much easier and, in my experience far more efficient, to take advantage of the powerful features built right into the Numbers interface. Using them, together with good old boring copy-paste, is underrated!


SG

Feb 3, 2024 11:44 AM in response to kl_mc

kl,


I'm back as promised. Here are three screen shots, one each for the three Sheets in this project.


As noted, I took a guess at your master sheet layout. To the extent that your master table differs, you will have to adjust the column references.


I've been doing this approach for a long time, and am comfortable with it. The new Numbers features that SG is promoting are a an easier way to get to the results, however the method you asked for isn't terribly difficult and certainly not if you save your work as templates so you're not starting over each time you want to do something like this.


I've tested the solution to see what happens if you sort the Master Table, and it seems robust. If you find an issue, I'm happy to take another look at it.


Thanks for the interesting question.


Jerry






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.

Numbers pull data from another sheet based on text criteria

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