Possible to change the background color of a row in Numbers automatically if a checkbox in that row is checked or in some other automatic way?

Basically in my bookkeeping when a row is "completed" (the day is over), I want the background color of that row to turn to a darker color. Darker not black so that I can still read it if I need to, but so I know at a glance it's done.


I thought the easiest way to do this might be to make a column with checkboxes and when the checkbox is checked, the entire row turns dark. But I can't see any way to trigger this action. Nor do I see any way to trigger a background color change from the system date.


I can almost think of a way to do this with AppleScript, but I'm not quite sure on that. Anyway, before I experiment with AppleScript I thought I would ask to see if there is a way to do this in-app.

MacBook Pro 14″, macOS 13.3

Posted on May 4, 2023 09:58 AM

Reply
Question marked as Top-ranking reply

Posted on May 4, 2023 07:59 PM

Here is another way that does not require a separate table, just one extra column in the existing table



Formula in cell F2 is =IF(E,CHAR(10000),"")

fill down to complete the column


Select all of columns A-E except the header row (and any footer rows)

Make a conditional format that looks like the one in the screenshot.

The box that has $F2 in it will start out empty with a green oval. Click on the green oval then click cell F2. Change it so it is $F2. Click the green checkmark to accept it. Then choose the formatting options (I didn't mean to make mine italics).


Hide column F when it is all set up and working. The formula and custom highlighting should auto-populate any new rows added later.


BTW, if you are using Unicode character 10,000 (2710 hex) for anything else in your table, use another character in the formula. It is a little pencil. I use this character because it is unlikely to be found in a spreadsheet.


4 replies
Question marked as Top-ranking reply

May 4, 2023 07:59 PM in response to dbooster

Here is another way that does not require a separate table, just one extra column in the existing table



Formula in cell F2 is =IF(E,CHAR(10000),"")

fill down to complete the column


Select all of columns A-E except the header row (and any footer rows)

Make a conditional format that looks like the one in the screenshot.

The box that has $F2 in it will start out empty with a green oval. Click on the green oval then click cell F2. Change it so it is $F2. Click the green checkmark to accept it. Then choose the formatting options (I didn't mean to make mine italics).


Hide column F when it is all set up and working. The formula and custom highlighting should auto-populate any new rows added later.


BTW, if you are using Unicode character 10,000 (2710 hex) for anything else in your table, use another character in the formula. It is a little pencil. I use this character because it is unlikely to be found in a spreadsheet.


May 4, 2023 05:12 PM in response to dbooster

Hi dbooster,


here is one way. Insert another table (1-1). You can hide this table on another sheet when all is working.

Formula in table 1-1 A2: IF(Table 1::$D2,Table 1::A2,"^*")

Fill right and down.

The nonsense text ^* can be any text that can not possibly occur in Table 1.


Select all body cells in Table 1 and apply a Conditional Highlighting rule:


Tip: to include a cell reference in the rule,

Numbers will adjust the cell reference to other selected cells of table 1.


Regards,

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.

Possible to change the background color of a row in Numbers automatically if a checkbox in that row is checked or in some other automatic way?

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