简体   繁体   中英

How to Replace Text in a cell Using Conditional Formatting

Let's say that in my Column A, I have a dropdown menu for "YES" and "NO".

If A1 == "YES"
   B1 = "CONGRATS!"
If A2 == "NO"
   B2 = "SORRY!"

I have applied the code below in column B's conditional formatting but didn't worked. Any possible option?

=IF(A1<>"YES", "SORRY","")

尝试:

=IF(A1="YES","CONGRATS!",IF(A1="NO","SORRY!",""))

If I'm understanding correctly, you are trying to create a formula that will change column B's value when A is equal to Yes or No?

I don't think this is an issue relating to conditional formatting, rather a simple formula should do the trick.

=IF(A1="YES","CONGRATS!",IF(A1="NO","SORRY!"))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM