How to change a cell’s color based on another cell’s date?

Hello, I have created a spreadsheet using Numbers on my iPad to track my bond ladder. The ladder contains about 10 bonds, with different maturity dates ranging from 2024 to 2028. The last column in my spreadsheet shows the total due on the maturity date. I would like the cells in the total due column to change color based on the year that the bond matures.


I understand how to use conditional formatting to change the color of the maturity date, however I cannot solve how to apply a color in the total due column based on the maturity date. I would appreciate any help, thanks!

iPad Air, iPadOS 17

Posted on Jan 6, 2024 10:35 AM

Reply
3 replies

Jan 6, 2024 11:01 AM in response to fotodog1

fd,


Conditional formatting only works on the data in the cell being formatted. There are some ways to get the effect you want. Probably the easiest is to add an adjacent column in which you have data that mirrors the conditional data, and then conditionally format the new column. In this way you draw attention to the data by coloring the adjacent cell.


Another way is to add some innocuous format condition data to the cell you want to highlight. For instance, if you want to highlight the cell with a distinctive background color, you could do this: =IF(BondMaturityDate warrants highlight, InitialExpression & "**", initialExpression) The highlight condition can then be based on the text value ending in "**". The "**" is itself a signal.


A little more awkward to manage if the table changes shape in the future is to construct a single column table with the maturity dates in it. Conditionally format that 1-col table to have the format signal background, and set the text color to zero opacity. Then, place this new table directly below the column that needs formatting in the main table. This is a very powerful way to apply formatting when it would be otherwise very difficult.


Jerry



Jun 12, 2024 9:22 PM in response to fotodog1

Conditional formatting is a great way to visually highlight specific dates in your spreadsheet. While you can't directly change a cell's color based only on another cell's date, there are clever workarounds. You can add a helper column with a formula to trigger the formatting, or even use a hidden table with conditional formatting. If you're looking for fun ways to teach kids about dates and colors, check out the coloring pages on Disegnidacoloraremondo.com!





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.

How to change a cell’s color based on another cell’s date?

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