Apple Intelligence is now available on iPhone, iPad, and Mac!

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

count the same data & Cells as drop down menu value

Hi,


I have several questions.


Question 1: I would like to count how many times the same name appears in the table. The table shows who performed the task on that day. It is not possible to create a new formula for every name because there can be more than 1000 names. I just want to know that if a name appears X times it will list this number in a cell.



Question 2: Is it possible to automatically add the data in the column to the drop down menu? For example, if I have 10 names in a column, they will be automatically adjusted in the drop down menu so that I don't have to adjust all the cells that contain the drop down menu every time a name changes.




Question 3: Can I adjust a 2d column so that when the number is negative it gets a different color?



I hope you understand what I mean. I've added some pictures to make it clear (sorry but the language is Dutch)

MacBook Pro 16″

Posted on Jan 4, 2023 10:40 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 5, 2023 8:04 AM

Hi Danny,

there are multiple ways, none of them is fully automatically.


Here one without formulas, but with a few manual steps that you have to do to get this graph.


Normally it looks something like this


You could add a filter to the Person column, it will only show rows where the name in Person "Is distinct".


With active filter it will look like this, every name is shown only once.


Pro: You don't have to add the names to a special list

Negative: For the graph you have to activate the filter, for the input you have to deactivate the filter


Regards Ralf


Similar questions

8 replies
Question marked as Top-ranking reply

Jan 5, 2023 8:04 AM in response to Dannyk22

Hi Danny,

there are multiple ways, none of them is fully automatically.


Here one without formulas, but with a few manual steps that you have to do to get this graph.


Normally it looks something like this


You could add a filter to the Person column, it will only show rows where the name in Person "Is distinct".


With active filter it will look like this, every name is shown only once.


Pro: You don't have to add the names to a special list

Negative: For the graph you have to activate the filter, for the input you have to deactivate the filter


Regards Ralf


Jan 4, 2023 3:07 PM in response to Dannyk22

Hi Dannyk22,

here an option for question 1:


Use the function COUNTIF - Apple Support to count the names

Formula for cell C2=COUNTIF(B,"="&B2)


Now drag this formula down or use Autofill to populate the formula to all rows of your table


This will give you the total count for each name


Based on your region the , or the ; will be used to separate the different sections of a formula. If you write one thousand as 1,000.00 then the , is used as your formula separator. If you write one thousand as 1.000,00 then the ; is used as your formula separator.


Hope this will solve your question, please let me know if this worked for you or if something in unclear.


Regards Ralf

Jan 4, 2023 3:23 PM in response to Dannyk22

Hi Dannyk22,

here an option for question 3:


Unfortunately you can not easily change the color for the positive / negative values.

But you can split them and use chart type "2D Stacked Column"


First split them in positive / negative values

Formula for C2=IF(B2≥0,B2,0)


Formula for D2=IF(B2<0,B2,0)


Then populate these formulas down to the end of your table.


Now create a 2D Stacked Column chart and change the colors.


Based on your region the , or the ; will be used to separate the different sections of a formula. If you write one thousand as 1,000.00 then the , is used as your formula separator. If you write one thousand as 1.000,00 then the ; is used as your formula separator.


Hope this will solve your question, please let me know if this worked for you or if something in unclear.


Regards Ralf

Jan 4, 2023 3:36 PM in response to Dannyk22

Hi Dannyk22,

here an answer for question 2:


Sorry but Numbers does not have an option to link a column to a Pop-Up Menu and automatically update the Pop-Up Menu as soon as the content of the column will change.


But you can select all cells that use this specific Pop-Up Menu and then you can change all these cells together.

As long as they are all in one column it is easy, if they are in different places in your table it will get difficult.


Hope this will solve your question, please let me know if this worked for you or if something in unclear.


Regards Ralf

Jan 5, 2023 8:19 AM in response to Ralf-F

Or you create a new table with all names and use the XLOOKUP function to get the number for the specific name


Pro: You don't have to switch filter on and off

Negative: You have to ensure that you have all names in your second table


There is no right or wrong, it is a personal decision. Based on how often you add new names and how often you need to get a correct graph.


Regards Ralf

Jan 5, 2023 8:24 AM in response to Dannyk22

Or you could have a look into Pivot Tables.

They can help with many things and create very quick a summary.


One big negative point on Pivot Tables is that they don't update automatically!

You would have to manually select update before you review the graph.

As a positive you don't have to calculate the total for each name, because this is done by the Pivot Table.


https://www.youtube.com/results?search_query=apple+numbers+pivot+table


Regard Ralf

Jan 5, 2023 12:05 PM in response to Ralf-F

Thank you for your response and once again clear explanation! I found the solution in combination with your answers. I enter the names in my "main" table. The column with the names is linked 1 to 1 to a separate table to which I link the filters and circle. this way everything is filtered and automatically added to the circle.


If you set it up as shown in the added picture, the second table will automatically add a row when a new name is detected in the main table. Through the filter, the circle sees this new name and adds it.



Thanks for your help. I now know everything I need to know 😄

Jan 5, 2023 3:28 AM in response to Ralf-F

Hi Ralf,


First of all thank you for your comments and good explanation. Everything is super clear to me.


I have a question about the names. What will be the best way if i want to convert the names to an 2d-Circle?

As you can see in the picture, I have linked the data to the circle, but then the same name will appear several times. What will be the best way to solve this and if a new name is added it needs to be automatically change in the circle.



Regards Danny

count the same data & Cells as drop down menu value

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