简体   繁体   English

Excel-条件格式?

[英]Excel - Conditional Formatting?

I am working with a sheet that uses a dropdown to determine whether the data is shown in Revenue and Units. 我正在使用一个工作表,该工作表使用下拉列表确定数据是否显示在“收入”和“单位”中。

I am wondering if there is a way to do a conditional format where when the dropdown is set to Revenue, it is shown in dollars? 我想知道是否有一种方法可以执行以下条件格式:将下拉列表设置为“收入”时,以美元显示?

  1. Select cell you want to format based on dropdown value 根据下拉值选择要设置格式的单元格
  2. Go to conditional formatting -> new rule -> Use formula to determine which cells to format 转到条件格式->新规则->使用公式来确定要格式化的单元格
  3. If your drop down is in cell A1 it should say: =A1="Revenue" in this case 如果您的下拉列表位于单元格A1中,则应显示:= A1 =“ Revenue”
  4. Select format and change to Accounting format with $ or whichever custom format you want on Number tab. 选择格式,然后使用$或“数字”选项卡上所需的任何自定义格式更改为“会计”格式。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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