
答案1
您需要使用Conditional Formatting
最後一條規則 -->Use a formula to determine which cells to format
- 選擇
Column B
範圍從B1:B8
- 前往
Home
選項卡 --> 從Styles
群組 --> 按一下Conditional Formatting
--> 按一下New
(或者,開啟New Formatting Rule
視窗框的捷徑是 --> ALT+ H+ L+ N) - 選擇最後一條規則 -->
Use a formula to determine which cells to format
- 在
edit the rule description
輸入以下公式:
=A1=1
- 點選
Format
--> 選擇您的首選項。 - 單擊
OK
-> 兩次。完畢。
2
重複該過程的方法相同,但更改A1=2
並更改格式。或者您可以選擇範圍,B1:B8
按ALT+ H+ L+R開啟Conditional Formatting Rules Manager
--> 按一下Duplicate
--> 點選Edit
--> 將規則描述變更1
為2
並變更格式,按OK
完成。