Conditional Formating dates
Asked by Leslie Du:

Hi, I wanted to format in a way that when dates passing today will turn into a different color. I know how to do this in excel but is this doable in Confluence? If yes how do I do it? Thanks!


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hi guys,  

Please let me mention the app that we develop regarding the case -- [Table Filter, Charts \& Spreadsheets](https://marketplace.atlassian.com/apps/27447/table-filter-charts-spreadsheets-for-confluence?hosting=cloud&tab=overview&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111).  

You'll be able to compare dates and set the corresponding cell background working with native Confluence tables (please check the [Table Transformer](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-transformer-macro-42241552.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro) and using Excel-like spreadsheets (the [Table Spreadsheet](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-spreadsheet-macro-83100938.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro will do the trick here).  

![Fri 3-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/305496i93B19FBCFEF97126/image-size/large?v=v2&px=999 "Fri 3-1.png")

<br />

If you are not familiar with the app, you may book a [live demo](https://calendly.com/tablefilter/live-demo?month=2024-02) from our team -- we'll be happy to arrange it.


author: Juliette Lallement _Elements Apps_
body: Hi [@Leslie Du](/t5/user/viewprofilepage/user-id/3942480) and [@Pansilu Diegayu Wickramasinghe](/t5/user/viewprofilepage/user-id/4198362)

My answer probably comes a bit late but just in case you or anyone else are still looking for a solution to your problem, the third-party app [Elements Spreadsheet](https://marketplace.atlassian.com/apps/1212486/elements-spreadsheet-for-confluence?hosting=cloud&tab=overview&utm_source=community&utm_medium=referral&utm_campaign=question-1390478) can cover this need using the Project Tables macro:

![conditional coloring for due dates.png](https://community.atlassian.com/t5/image/serverpage/image-id/305290i0833A05F04924F0F/image-size/large?v=v2&px=999 "conditional coloring for due dates.png")

You can decide to color up the Due Date cell or the entire row at your convenience.

Should you have any questions, I'm happy to help!

Disclaimer: I am the Product Manager of the app


author: repi
body: [@Leslie Du](/t5/user/viewprofilepage/user-id/3942480)

Without knowing what data it should be and where it should be displayed, I would say that this is not possible with the standard functionality of confluence.  
If you describe exactly which data should be displayed where in color, the community may be able to give you additional apps that can do this.

comments: author: Leslie Du
body: So in one of the pages, we want to have a table which includes a set of dates and events, and for tracking purpose we are hoping the date which passed today can automatically turn red. Does this provide more detail?


author: repi
body: [@Leslie Du](/t5/user/viewprofilepage/user-id/3942480)

Should it look like this?

![tasklist.png](https://community.atlassian.com/t5/image/serverpage/image-id/96689i7912DCE3E419EEF8/image-size/large?v=v2&px=999 "tasklist.png")

This is done in the editor with the button "tasklist"

![tasklist 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/96690i7353723227612645/image-size/large?v=v2&px=999 "tasklist 2.png")


author: Pansilu Diegayu Wickramasinghe
body: Hello there, I have the same question, I want to format a column in my table so that the dates passing today would turn red and if the date is closer than or equal to 6 months from now it would turn yellow and if the date is greater than 6 months it would turn green. I'm not too sure about how to do this on confluence. If there's a method you can help me out with, I'd really appreciate it. Thank you!


Tags: table

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets

table-spreadsheet

table-transformer