\n
Hello,
\n
\n
I'm trying to show a countdown of business days to an employee's last day and would like to add conditional formatting as follows:
\n
If the countdown is less than 0 days, just show 0
\n
If the countdown is 3-0 days, bold in red font and highlight field yellow
\n
If the countdown is greater or equal to 4 days, no need to do any conditional formatting
\n
\n
Can you please assist me with the formula and what field type it should be?
\n
\n
I was trying to do a formula along the lines of:
\n
\n
If(ToDays([Last day]-today())<=3,\"
\n
\"<font color=red><b><div style=\\\"background-color:yellow;\\\"</div>\"&([Last day]-today()),
\n
([Last day]-today())\")
\n
\n
But I know this won't take into account the 3 different formatting and I was getting error messages related to the field type.
\n
Thank you!
\n
","kudosSumWeight":0,"postTime":"2022-09-21T17:44:00.000-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"tags":{"__typename":"TagConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"TagEdge","cursor":"MjUuM3wyLjF8b3wxMHxfTlZffDE","node":{"__typename":"Tag","id":"tag:Formulas and functions","text":"Formulas and functions","time":"2024-04-03T08:20:25.743-07:00","lastActivityTime":null,"messagesCount":null,"followersCount":null}}]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:78263_1"},"latestVersion":null,"metrics":{"__typename":"MessageMetrics","views":30},"visibilityScope":"PUBLIC","canonicalUrl":null,"seoTitle":null,"seoDescription":null,"isEscalated":null,"placeholder":false,"originalMessageForPlaceholder":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"archivalData":null,"customFields":[]},"Conversation:conversation:78263":{"__typename":"Conversation","id":"conversation:78263","solved":false,"topic":{"__ref":"ForumTopicMessage:message:78263"},"lastPostingActivityTime":"2022-09-23T09:01:00.000-07:00","lastPostTime":"2022-09-23T09:01:00.000-07:00","unreadReplyCount":4,"isSubscribed":false},"ModerationData:moderation_data:78263":{"__typename":"ModerationData","id":"moderation_data:78263","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"Revision:revision:78263_1":{"__typename":"Revision","id":"revision:78263_1","lastEditTime":"2022-09-21T17:44:00.000-07:00"},"ForumReplyMessage:message:78266":{"__typename":"ForumReplyMessage","id":"message:78266","conversation":{"__ref":"Conversation:conversation:78263"},"author":{"__ref":"User:user:37663"},"revisionNum":1,"uid":78266,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:quickbase-discussions"},"subject":"Re: Countdown with Conditional Formatting","readOnly":false,"editFrozen":false,"moderationData":{"__ref":"ModerationData:moderation_data:78266"},"parent":{"__ref":"ForumReplyMessage:message:78265"},"body":"I think I got it. I used: