Evernight2021
New Member
- Joined
- Dec 28, 2018
- Messages
- 10
I have a spreadsheet with a column of dates (A) and anniversary dates (B). I want to make a column (C) with cells that calculate if the date in column B is equal to or greater than today's date. If so, I want them to subtract the date in column B1 from the date in A1 and put the number of years between them in C1 and then highlight the cell in a color to make the change stand out but I'm not sure what the best way to do this would be. I have the following formula that correctly calculates the years, but I can't figure out how to change the cell color when that value changes:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
An example of the data is below:
[/FONT]
<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Code:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IF(N45<=TODAY(),ROUNDDOWN((N45-D45)/360,0),ROUNDDOWN((N45-D45)/360,0)-1)[/FONT]
An example of the data is below:
[/FONT]
<tbody> </tbody> | |||||||||||||||||||||||||||||||||||
Any assistance on how to complete this goal or a better way to do it would be appreciated. | |||||||||||||||||||||||||||||||||||
<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>