#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
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 10.5K Get Help
 61 Global Discussions
 46 Industry Talk
 385 Announcements
 3.5K Ideas & Feature Requests
 54 Brandfolder
 124 Just for fun
 50 Community Job Board
 466 Show & Tell
 40 Member Spotlight
 44 Power Your Process
 28 Sponsor X
 234 Events
 7.3K Forum Archives
Check out the Formula Handbook template!