#invalid column value for some rows
hello, hoping someone can help me out. i want to have the overall health of each workstream calculated based on the status in the following arguments
If values are greater than 0 for 'in progress' or 'complete' > Green Circle
if 'complete' equals 'total' > Blue circle
if 'not started' equals 'total' > 'not started'
if 'at risk' greater than 0 (regardless of what is in the other columns)> Red Circle
if 'delayed' greater than 0 (regardless of what is in the other columns)> Yellow Circle
i started by testing the IF(OR for the Green Circle and am getting #INVALID COLUMN VALUE only for some rows, all my columns are text/number columns.
this is the formula i tried for "Green":
=IF(OR([Column14]@row > 0), ([Column12]@row > 0), "Green")
i also tried to string all arguments together like this:
=IF(OR([Column12]@row > 0), ([Column14]@row > 0)), "Green", IF([Column12]@row = [Column9]@row, "Blue", IF([Column13]@row = [Column9]@row, "Not Started", IF([Column8]@row > 0, "Red", IF([Column7]@row > 0, "Yellow", false))))
Answers

Hi @tina907
I'd be happy to help you with this!
It looks like you're closing off your OR statement before you're finished giving it instructions. Here's how the structure should go:
=IF(OR(first statement, second statement)
However you have:
=IF(OR(first statement), (second statement))
Try this:
=IF(OR([Column12]@row > 0, [Column14]@row > 0), "Green", IF([Column12]@row = [Column9]@row, "Blue", IF([Column13]@row = [Column9]@row, "Not Started", IF([Column8]@row > 0, "Red", IF([Column7]@row > 0, "Yellow", false))))
The other thing to note is that IF statements will stop as soon as they find a true statement, and will not read through the rest of the formula. This means your Red and Yellow statements will only happen if the In Progress or Complete columns are not greater than 0. Is that what you want?
Otherwise, you'd want to have those Red and Yellow statements first. Try this:
=IF([Column8]@row > 0, "Red", IF([Column7]@row > 0, "Yellow", IF(OR([Column12]@row > 0, [Column14]@row > 0), "Green", IF([Column12]@row = [Column9]@row, "Blue", IF([Column13]@row = [Column9]@row, "Not Started"))))
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8  10, Seattle, WA  Register now
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 62.2K Get Help
 361 Global Discussions
 199 Industry Talk
 427 Announcements
 4.4K Ideas & Feature Requests
 136 Brandfolder
 127 Just for fun
 128 Community Job Board
 444 Show & Tell
 28 Member Spotlight
 1 SmartStories
 283 Events
 35 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!