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.

In Apple Numbers, can I make a row change colour based on what I enter in a certain cell?

I am making a stock spreadsheet and I have 3 categories for my stocks. The are conservative, moderate and aggressive. I want to be able to type either C,M or A into the first cell of a row, and the whole row will change to one of three colors. Thanks

iPhone 12 Pro Max

Posted on Jul 29, 2024 8:44 PM

Reply
5 replies

Jul 30, 2024 2:30 AM in response to Scrubber2

Hi Scrubber2,


As Olivia said, it can be done with auxiliary columns. Here is an idea using auxiliary tables, and it does simplify the process.


Insert a table for each category, C, M, and A

Give each table the same number of columns as Table 1.

Formula in Table C, A2 is IF(Table 1::$A2=A$1,Table 1::A2,"")

Fill down and fill right.


Copy Table C, A2 and paste into Table M, A2.

Fill down and fill right.


Paste into Table A, A2.

Fill down and fill right.


Conditional Highlighting: Select all the Body Cells in Table 1


Hide (Cut and Paste) the auxiliary tables on another Sheet.


Please call back with questions.

Regards, Ian.

Jul 31, 2024 6:19 PM in response to Scrubber2

You can also do this quite easily with just one table and a few helper columns (one helper column for each distinct color), like this:




In G2, filled right and down:


IF($A2=G$1,"~","")


Use ; instead of ; in the formula if your region uses , as the decimal separator.


Then select the cells in the rows (not including the helper column) and add Conditional Highlighting rules like this:





Be sure to "anchor" the references within each rule by clicking the token and doing this:



SG

Jul 29, 2024 11:53 PM in response to Scrubber2

You can use conditional highlighting to color the cell. However, conditional highlighting only affects the cell to which the rule is applied. It cannot automatically extend to the entire row.

You can select the first column, and then go to Cell -> Conditional Highlighting, and add three rules (I randomly chose three colors), as shown in the screenshot below.

If you want to highlight the entire row, you may need to add auxiliary columns, which could be a great deal of work.




In Apple Numbers, can I make a row change colour based on what I enter in a certain cell?

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