IF/AND Statements to change Symbol colors
I have a column in an equipment check-in/out sheet with Symbols (Red, Yellow, Green, Blue) where I am attempting an IF/AND statement to determine the color.
Yellow = OUT box is checked and the date is today
Red = OUT box is checked and the date is before today
Green = IN box is checked
Blue = Maint box is checked
Each individual formula works but when I put them all together, I receive an INCORRECT ARGUMENT.
Individual formulas:
=IF(AND(OUT@row = 1, [Due Date]@row = TODAY()), "Yellow")
IF(AND(OUT@row = 1, [Due Date]@row < TODAY()), “Red”
IF(IN@row = 1, "Green"
IF(Maint@row = 1, "Blue"
Formulas parsed together:
=IF(IN@row = 1, "Green", IF(Maint@row = 1, "Blue", IF(AND(OUT@row = 1, [Due Date]@row < TODAY(), "Red", IF(AND(OUT@row = TODAY(), "Yellow"))))))
Any assistance would be appreciated.
Best Answers
-
Hello @tschlitz
If that is your formula you are missing 2 ")"
=IF(IN@row = 1, "Green", IF(Maint@row = 1, "Blue", IF(AND(OUT@row = 1, [Due Date]@row < TODAY()), "Red", IF(AND(OUT@row = TODAY()), "Yellow"))))))
-
That worked! thank you!!
Answers
-
Hello @tschlitz
If that is your formula you are missing 2 ")"
=IF(IN@row = 1, "Green", IF(Maint@row = 1, "Blue", IF(AND(OUT@row = 1, [Due Date]@row < TODAY()), "Red", IF(AND(OUT@row = TODAY()), "Yellow"))))))
-
That worked! thank you!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 62 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!