#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
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66K Get Help
- 429 Global Discussions
- 149 Industry Talk
- 488 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 153 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!