Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
209 views
in Technique[技术] by (71.8m points)

Multi conditional formatting not working in google sheets. only 3 steps working

What I am trying to do here,

  1. If a cell value AA=>7 the whole row will be "Orange": This is working
  2. If a cell value AA=>10 the whole row will be "Red": This is working
  3. If another cell V="Cancelled" it will override conditional formatting 1 and 2 the whole row will be white, Red text, and strikethrough: This is working
  4. if same "V" cell V="Shipped" the whole row should be Green and conditional formating 1 2 and 3 will be overridden: This is not working

This is what I did in the Google Sheets

question from:https://stackoverflow.com/questions/65920097/multi-conditional-formatting-not-working-in-google-sheets-only-3-steps-working

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You should add a condition on your 1 and 2 conditions to prevent them from overwriting the failing condition and not interfere with each other

=AND($AA2>=7, $AA2<=9, $V2<>"Shipped")

=AND($AA2>=10, $V2<>"Shipped")

This means that they only format the cells IF $V2 is not "Shipped" and condition 1 will only work on AA values 7-9

The problem with your conditions is that it can support 2 cases at once. For these issues, we need to completely separate them so that they will not have issues.

Every case should only be under 1 conditional formatting for it to work properly.

sample data

Also, note the hierarchy of the conditions as it will affect the outcome.

Reference:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...