# Green, Yellow, Red Formula

Hello,

I'm trying to write a formula that looks at two columns, and if the numbers in both columns are equal, then it will return the green circle, If not then the circle will be red. What I'm having trouble with is if one of the cells is blank then I would like it have the return be yellow. However I keep getting an incorrect argument error.

This is what I have so far.

=IF([Job Number]@row <> [Job #]@row, "Red", IF(ISBLANK([Job #]@row), "Yellow"), "Green")

I'm not really sure were to go from here so any help will be appreciated. Thanks

• ✭✭✭✭✭✭

That would depend if you want the yellow to appear if only 1 of the 2 (Job #) is blank or both:

For the former (Symbol column):

=IF([Job Number]@row = [Job #]@row, "Green", IF([Job #]@row = "", "Yellow", "Red"))

For the latter (Symbol 2 column):

=IF([Job Number]@row = [Job #]@row, "Green", IF(OR([Job #]@row = "", [Job Number]@row = ""), "Yellow", "Red"))

Hope this helps, but if you've any problems/questions then just post!

• @Nick Korna Thank you so much, everything is working perfectly now! I really appreciate your help.

• ✭✭✭✭✭✭

No problem, happy to help. ☺️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!