简体   繁体   中英

Conditional formatting in excel based on value in another column

I have situation like this in excel:

Col1 Col2
3.4  1
5.6  0
4.6  0
8.7  1
10.1 0

I want to format Col1 based on values of Col2. I want to fill the background of Col1 with say green if corresponding value in Col2 is 1

I saw some examples of coloring where value>value in other cell. But none of this type.

Thanks

Here's how to do exactly what you say:

  1. Select first cell in column A.
  2. Select Conditional Formatting/New Rule.
  3. Select Classic Style conditional formatting.
  4. Choose Use a formula to determine which cells to format.
  5. Make the formula: =$B1=1
  6. Choose your formatting (as in green)
  7. Choose the Format Painter
  8. Select the column to apply the conditional formatting to all cells in that column. 应用条件格式 Note: some variants in terminology and location of options between versions of Word, but the basic functionality is the same.

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