Script to Change Row Color when a cell changes text

前端 未结 5 438
傲寒
傲寒 2020-11-27 11:05

I have a Google spreadsheet where I keep a list of bugs and whenever I fix a bug I change the status from \"Not Started\" to \"Complete\". I want to write a script for the

5条回答
  •  感情败类
    2020-11-27 11:23

    user2532030's answer is the correct and most simple answer.

    I just want to add, that in the case, where the value of the determining cell is not suitable for a RegEx-match, I found the following syntax to work the same, only with numerical values, relations et.c.:

    [Custom formula is]
    =$B$2:$B = "Complete"
    Range: A2:Z1000
    

    If column 2 of any row (row 2 in script, but the leading $ means, this could be any row) textually equals "Complete", do X for the Range of the entire sheet (excluding header row (i.e. starting from A2 instead of A1)).

    But obviously, this method allows also for numerical operations (even though this does not apply for op's question), like:

    =$B$2:$B > $C$2:$C
    

    So, do stuff, if the value of col B in any row is higher than col C value.

    One last thing: Most likely, this applies only to me, but I was stupid enough to repeatedly forget to choose Custom formula is in the drop-down, leaving it at Text contains. Obviously, this won't float...

提交回复
热议问题