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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives