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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
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
- 64.1K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 140 Just for fun
- 57 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives