#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 for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!