# #invalid column value for some rows

edited 06/02/23

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))))

• Employee

Hi @tina907

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