IF, THAN, ELSE statement
I am needing to create a formula and I am stuck.
I have 3 columns, "PO Cut", "Completion Date" and "Number of days"
What I am tying to do is have the "Number of days" column show how many days have passed since the "PO Cut Date", unless there is a date value in the "Completion Date" column, then just calculate number of days between "PO Cut" and "Completion Date".
Thanks!
Best Answers
-
=IF([Completion Date]@row = "", TODAY() - [PO Cut]@row, [Completion Date]@row - [PO Cut]@row)
-
Thx, Antonio, Not sure what I was missing.
-
Hi @CameronKeel
Yes! You can do this using Conditional Formatting rules.
See: Apply Formatting Automatically with Conditional Formatting Rules
Cheers,
Genevieve
Answers
-
=IF([Completion Date]@row = "", TODAY() - [PO Cut]@row, [Completion Date]@row - [PO Cut]@row)
-
Thx, Antonio, Not sure what I was missing.
-
@Antonio Figueroa is it possible to add if the number is larger than "90" turn the font color red?
-
Hi @CameronKeel
Yes! You can do this using Conditional Formatting rules.
See: Apply Formatting Automatically with Conditional Formatting Rules
Cheers,
Genevieve
-
Yes all you need to do is select the column you want to format and click on Conditional Formatting
then add new rule. Next you will see something like this.
click on set condition. Click on the Column you wish to format and then click on define custom criteria.
Open the dropdown menu and select is greater than. in the next box type in the criteria 90 and hit ok.
Next click on this format and pick a color. Next click on entire row if you just want that column to change colors.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.1K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 450 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 289 Events
- 34 Webinars
- 7.3K Forum Archives