excel图标变成未知图标_Excel 2003中的条件格式图标

excel图标变成未知图标

In Excel 2007, conditional formatting options include Icon Sets, such as coloured flags, stop lights, and other symbols. They aren't available in earlier versions, but here's how you can create your own conditional formatting icons in Excel 2003.

在Excel 2007中, 条件格式设置选项包括图标集,例如彩色标志,停车灯和其他符号。 它们在较早的版本中不可用,但是这里介绍了如何在Excel 2003中创建自己的条件格式图标。

First, here's the menu option for adding icon sets in Excel 2007.

首先,这是用于在Excel 2007中添加图标集的菜单选项。

CondFormatIcon2007

You can use these symbols to show what values are going up, or which departments are exceeding their budgets.

您可以使用这些符号来显示正在上升的值,或者哪些部门超出了预算。

Excel 2003 (Excel 2003)

Icon Sets aren't available in earlier versions of Excel, but you can use conditional formatting, a formula, and the Wingding font to show symbols in an adjacent column. In this example, coloured shapes appear in cells C3:C7, linked to the values in column B.

图标集在早期版本的Excel中不可用,但是您可以使用条件格式,公式和Wingding字体在相邻列中显示符号。 在此示例中,彩色形状出现在单元格C3:C7中,链接到列B中的值。

  • For values less than 10, a red circle will appear

    对于小于10的值,将出现一个红色圆圈
  • For values greater than 30, a green square will appear.

    对于大于30的值,将出现一个绿色方块。
  • For all other values, a yellow diamond will appear.

    对于所有其他值,将显示黄色菱形。
CondFormatIcon2003

创建公式 (Create the Formulas)

You'll create an IF formula, and use the WingDing font to show the result as a symbol. In WingDing font, l (lower case L) is a circle, n is a square and t is a diamond.

您将创建一个IF公式,并使用WingDing字体将结果显示为符号。 在WingDing字体中, l (小写L)是一个圆形, n是一个正方形, t是一个菱形。

  1. In cell C3 enter the first formula:

    在单元格C3中输入第一个公式:

    =IF(B3="","",IF(B3<10,"l",IF(B3>30,"n","t")))

    = IF(B3 =“”,“”,IF(B3 <10,“ l”,IF(B3> 30,“ n”,“ t”))))

  2. Copy the formula down to cell C7

    将公式复制到单元格C7中
  3. Format cells C3:C7 with Wingding font, and yellow font color. This is the default colour, for the middle value cells.

    用Wingding字体和黄色字体颜色设置单元格C3:C7的格式。 这是中间值单元格的默认颜色。

添加条件格式 (Add the Conditional Formatting)

Next, you'll add conditional formatting, to colour the red and green shapes.

接下来,您将添加条件格式,以为红色和绿色形状上色。

  1. Select cells C3:C7

    选择单元格C3:C7
  2. Choose Format|Conditional Formatting

    选择格式|条件格式
  3. From the first dropdown, choose Formula Is

    在第一个下拉菜单中,选择公式为

  4. For the formula, enter: =$B3<10

    对于公式,输入: = $ B3 <10

  5. Click the Format button, select Red as the font colour, then click OK.

    单击格式按钮,选择红色作为字体颜色,然后单击确定。

    CondFormatFont
  6. Click the Add button, and for Condition 2, choose Format|Conditional Formatting

    单击添加按钮,并为条件2选择格式|条件格式
  7. From the first dropdown, choose Formula Is

    在第一个下拉菜单中,选择公式为

  8. For the formula, enter: =$B3>30

    对于公式,输入: = $ B3> 30

  9. Click the Format button, select Green as the font colour, then click OK.

    单击格式按钮,选择绿色作为字体颜色,然后单击确定。

    CondFormat2003
  10. Click OK to close the Conditional Formatting dialog box.

    单击确定以关闭条件格式对话框。

测试条件格式 (Test the Conditional Formatting)

To test the conditional formatting, change one or more of the values in column B. For example, type a 5 in cell B5, and the shape in cell C5 should change to a red circle.

若要测试条件格式,请更改B列中的一个或多个值。例如,在单元格B5中键入5,单元格C5中的形状应更改为红色圆圈。

使条件格式灵活 (Make the Conditional Formatting Flexible)

To make the conditional formatting easier to change, you could enter the low and high cutoff values on the worksheet, and use an absolute reference to those cells in the conditional formatting formula.

为了使条件格式更易于更改,可以在工作表上输入下限和上限值,并在条件格式公式中使用对这些单元格的绝对引用。

CondFormatCellRef

Also, change the worksheet formulas, so they also refer to the cutoff values on the worksheet:

此外,更改工作表公式,以便它们也引用工作表上的临界值:

=IF(B3="","",IF(B3<$F$1,"l",IF(B3>$F$2,"n","t")))

= IF(B3 =“”,“”,IF(B3 <$ F $ 1,“ l”,IF(B3> $ F $ 2,“ n”,“ t”))))

CondFormatCellRefCell

Now you can change the limits on the worksheet, without editing the formulas and conditional formatting. ________________________

现在,您可以更改工作表上的限制,而无需编辑公式和条件格式。 ________________________

翻译自: https://contexturesblog.com/archives/2009/04/14/conditional-formatting-icons-in-excel-2003/

excel图标变成未知图标

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值