excel条件格式使用
Progress bars are pretty much ubiquitous these days; we’ve even seen them on some water coolers. A progress bar provides instant feedback on a given process, so why not bring some of that graphical pizzazz into your spreadsheet, using Excel’s Conditional Formatting feature?
如今,进度条几乎无处不在。 我们甚至在一些饮水机上看到它们。 进度栏可提供有关给定过程的即时反馈,那么为什么不使用Excel的条件格式设置功能将一些图形混乱引入到电子表格中呢?
Excel 2010中的进度条 (Progress Bars in Excel 2010)
“Bar-type” conditional formatting has been around since Excel 2007. But Excel 2007 would only make bars with a gradient – the bar would get paler and paler towards the end, so even at 100% it wouldn’t really look like 100%. Excel 2010 addresses this by adding Solid Fill bars that maintain one color all throughout. These are ideal for creating progress bars.
自Excel 2007起就出现了“条形”条件格式。但是Excel 2007只会使条形带有渐变-条形在结尾处会越来越淡,因此即使在100%的条件下,它看起来也不是真正的100% 。 Excel 2010通过添加可始终保持一种颜色的纯色填充条来解决此问题。 这些是创建进度条的理想选择。
创建酒吧 (Creating The Bar)
The first thing you have to do is enter a numeric value into the cell you’d like to format. You can either enter the value directly or use a formula. In our case I’ll just type it in.
您要做的第一件事是在您要格式化的单元格中输入一个数值。 您可以直接输入值,也可以使用公式。 在我们的情况下,我将其键入。
Note how I made the column wider; you don’t necessarily have to do this, but it does help make the bar look more like a “bar” (and not just a colored cell).
注意如何使列变宽; 您不必一定要这样做,但这确实有助于使条看起来更像“条”(而不仅仅是彩色单元格)。
Now click Conditional Formatting, select Data Bars and click More Rules.
现在单击条件格式,选择数据栏,然后单击更多规则。
In the New Formatting Rule dialog check the box that says Show Bar Only (so the number doesn’t appear in the cell). Under Minimum and Maximum, select Type as Number. Then, set the Value to the minimum (beginning) value of your scale and maximum (the top of your bar, the end of the process). We’ll just go for 0 and 100, but you could set this to anything that works for you.
在“新格式设置规则”对话框中,选中显示“仅显示栏”的框(这样数字不会出现在单元格中)。 在最小和最大下,选择类型作为数字。 然后,将“值”设置为刻度的最小值(开始)和最大值(栏的顶部,过程结束)。 我们只取0和100,但是您可以将其设置为任何适合您的值。
Now let’s configure the Bar Appearance. Make sure the Fill is Solid Fill and select the color you’d like to use. When you’re done, the dialog should look similar to this:
现在,让我们配置条形外观。 确保“填充”为“实心填充”,然后选择您要使用的颜色。 完成后,对话框应类似于以下内容:
Now click OK, and you’re done! At this point you should have a beautiful, crisp progress bar adorning your spreadsheet.
现在单击“确定”,您就完成了! 此时,您应该有一个漂亮,清晰的进度条装饰您的电子表格。
翻译自: https://www.howtogeek.com/howto/45677/how-to-create-progress-bars-in-excel-with-conditional-formatting/
excel条件格式使用