简体   繁体   English

如何使用公式检查Excel单元格样式?

[英]How to check excel cell style using formula?

I had one problem to how to make separate column which is bold among 4. Let me explain in detail I'm using excel win 2010. i have questions with 4 multiple answer i want to make separate column with true answer. 我对如何在4中用粗体显示一个单独的列有一个问题。让我详细解释一下我使用的是excel win2010。我有4个多重答案的问题,我想用真实答案创建一个单独的列。 true answer is bold. 真正的答案是大胆的。 In 4 answers one of is bold so checking all 4 which is bold one copy to true answer column check attached screenshot. 在4个答案中,其中一个为粗体,请检查所有4个为粗体的副本,然后复制到正确的答案列中,检查随附的屏幕截图。 在此处输入图片说明

Here's a solution by filtering: 这是过滤的解决方案:

  1. Apply a filter on the columns containing the answers 在包含答案的列上应用过滤器
  2. Select the columns containing the answers and do a replace (or hit Ctrl + H ) 选择包含答案的列并进行替换(或按Ctrl + H
  3. Hit the Options >> button and click on Format for the Find and pick Font > Bold 点击选项>>按钮,然后单击格式以查找并选择字体>粗体
  4. For the replace, do the same thing but pick Fill > Yellow (or any other colour you like). 对于替换,执行相同的操作,但选择“填充”>“黄色”(或您喜欢的任何其他颜色)。 You should get something like this now: 您现在应该得到这样的东西:

    在此处输入图片说明

  5. Click Replace All button so that all the bold answers are now highlighted. 单击全部替换按钮,以便所有粗体答案现在都突出显示。

  6. Filter the first column of answers by colour so that you have only the highlighted cells. 按颜色过滤答案的第一列,以便只有高亮显示的单元格。 Assuming that the first answer A is in cell B2, put the formula =B2 in the last column (ie 4 columns before and same row) and fill down the formula. 假定第一个答案A在单元格B2中,则将公式=B2放在最后一列(即同一行之前的4列)中,并填写该公式。
  7. Repeat step 6 for all the other answers making sure you are taking the right column in the formula. 对所有其他答案重复步骤6,以确保您在公式中使用了正确的列。
  8. Remove the colours from the answer columns. 从答案列中删除颜色。

For A, you should have something like: 对于A,您应该具有以下内容:

在此处输入图片说明

For B... 对于B ...

在此处输入图片说明

etc. 等等

At the end, you should have something like this: 最后,您应该具有以下内容:

在此处输入图片说明

I have added column G to show the different formulas. 我添加了G列以显示不同的公式。

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

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