excel修复后数据丢失_如何修复Excel数据栏

excel修复后数据丢失

To make a chart right in the worksheet cells, use Excel Data Bars, built with conditional formatting. See how to add a standard set of Data Bars (Excel 2007 and later), and adjust their settings to make the bars look better.

要在工作表单元格中正确制作图表,请使用条件格式构建的Excel数据栏。 了解如何添加一组标准的数据栏(Excel 2007及更高版本),并调整其设置以使数据栏看起来更好。

And remember to mark your calendars – next Tuesday, October 17th, is Spreadsheet Day – alert your family and friends!

记住要记下您的日历-10月17日星期二是电子表格日 -提醒您的家人和朋友!

添加Excel数据栏 (Add Excel Data Bars)

First, to add a standard set of Data Bars , follow these steps:

首先,要添加一组标准的数据栏,请按照下列步骤操作:

  • Select the cells with numbers (don't include any row or column totals).

    选择带有数字的单元格(不包括任何行或列的总数)。
  • On the Ribbon's Home tab, click Conditional Formatting.

    在功能区的“主页”选项卡上,单击“条件格式”。
  • Click Data Bars, and then click any one of the Data Bar options

    单击数据栏,然后单击任何一个数据栏选项

NOTE: You can change the Fill Style (gradient or solid) later, or choose a different colour for the Data Bars.

注意 :您可以稍后更改填充样式(渐变或纯色),或为数据栏选择其他颜色。

excel修复后数据丢失_如何修复Excel数据栏_第1张图片

The selected cells will show Excel Data Bars, along with the original numbers. In the screen shot below, the Green Gradient data bar option was selected

选定的单元格将显示Excel数据栏以及原始数字。 在下面的屏幕快照中,选择了“绿色渐变”数据栏选项

excel修复后数据丢失_如何修复Excel数据栏_第2张图片

更改数据栏设置 (Change the Data Bar Settings)

After you add the Data Bars, you can make a few changes to the default settings, to make the bars look better. Here are the steps for opening the Settings dialog box:

添加数据栏后,您可以对默认设置进行一些更改,以使数据栏看起来更好。 以下是打开“设置”对话框的步骤:

  • Select the cells that contain the data bars.

    选择包含数据栏的单元格。
  • On the Ribbon, click the Home tab

    在功能区上,单击“主页”选项卡
  • In the Styles group, click Conditional Formatting, and then click Manage Rules.

    在“样式”组中,单击“条件格式”,然后单击“管理规则”。
  • In the list of rules, click your Data Bar rule.

    在规则列表中,单击您的数据栏规则。
  • Click the Edit Rule button, to open the Edit Formatting Rule dialog box.

    单击“编辑规则”按钮,以打开“编辑格式规则”对话框。

隐藏数字 (Hide the Numbers)

You won't make any changes in the "Select a Rule Type" at the top. Look at the settings in the lower section – "Edit the Rule Description".

您不会在顶部的“选择规则类型”中进行任何更改。 查看下部的设置–“编辑规则描述”。

One simple tweak is to hide the cells' numbers. This could be useful if you want people to focus on the "big picture", rather than the details.

一种简单的调整是隐藏单元格的编号。 如果您希望人们专注于“全局”而不是细节,这可能会很有用。

  • To hide the numbers, add a check mark to "Show Bar Only"

    要隐藏数字,请在“仅显示栏”上添加复选标记

  • Then, click OK, to see the revised Data Bars.

    然后,单击确定,以查看修改后的数据栏。

更改Excel数据栏外观 (Change Excel Data Bar Appearance)

Another easy change is to select different options in the "Bar Appearance" section.

另一个简单的更改是在“条形外观”部分中选择不同的选项。

  • The Fill can be Gradient or Solid, and you can pick a colour from the standard palette, or from the "More Colors" screen.

    填充可以是渐变色或纯色,您可以从标准调色板或“更多颜色”屏幕中选择一种颜色。
  • The Border can be Solid, with any colour choice, or choose No Border

    边框可以是纯色的,可以选择任何颜色,也可以选择“无边框”

  • A Preview, at the bottom right of the dialog box, shows what the revised Data Bars will look like.

    对话框右下方的预览显示修改后的数据栏的外观。
  • When you're happy with the appearance, click OK

    当您对外观感到满意时,请单击“确定”。

数据栏最小值 (Data Bar Minimum)

You can also change the Minimum and Maximum settings for the set of Data Bars. By default, both are set to "Automatic". From my experience, that results in a Minimum of zero, and a Maximum of the highest value.

您还可以更改数据栏集的最小和最大设置。 默认情况下,两者均设置为“自动”。 根据我的经验,这导致最小值为零,最大值为最大值。

The Automatic settings are fine for some data, but you can change them. For example, if there is only a small difference among the numbers, as in the screen shot below, you might want to highlight that differences.

自动设置适合某些数据,但是您可以更改它们。 例如,如下面的屏幕快照所示,如果数字之间只有很小的差异,则可能需要突出显示该差异。

To focus on the differences in this example, change the minimum setting.

为了关注本示例中的差异,请更改最小设置。

  • Open the Edit Rule dialog box

    打开“编辑规则”对话框
  • For Minimum, click the Type arrow, and choose Number

    对于最小值,单击类型箭头,然后选择数字
  • In the Value box, type 10000

    在数值框中键入10000

  • Click OK, to close the dialog box

    单击确定,关闭对话框

The Data Bars change – range is only 357, instead of 10357. so you can clearly see the small difference among the numbers.

数据条的变化–范围仅为357,而不是10357。因此您可以清楚地看到数字之间的微小差异。

NOTE: Using a hard-coded value of 10000 worked well in this case, but hard coding wouldn't be a good solution if the numbers will change. See the next section for another option.

注意 :在这种情况下,使用10000的硬编码值效果很好,但是如果数字会更改,则硬编码不是一个好的解决方案。 有关其他选项,请参见下一部分。

数据栏最大值 (Data Bar Maximum)

If you use the default Maximum setting, the bar for the highest value fills the cell. If the numbers are showing, and the bars have a dark fill colour, it will be difficult to read some of the numbers

如果使用默认的“最大值”设置,则最大值栏将填充单元格。 如果显示数字,并且条形图具有深色填充色,将很难读取其中一些数字

To fix that problem, change the Maximum, to leave  a space at the right end of the bar. Instead of hard-coding a Maximum value, we'll use a flexible solution.

要解决该问题,请更改最大值,在条形图的右端保留一个空格。 我们将使用一种灵活的解决方案,而不是对最大值进行硬编码。

  • Open the Edit Rule dialog box

    打开“编辑规则”对话框
  • For Maximum, click the Type arrow, and choose Formula

    对于最大值,单击类型箭头,然后选择公式
  • In the Value box, type this formula: =MAX($G$4:$G$9)*1.3

    在“值”框中,键入以下公式: = MAX($ G $ 4:$ G $ 9)* 1.3

  • Click OK, to see the result

    单击确定,以查看结果

The MAX function finds the highest number in the range of cells, and that amount is multiplied by 1.3.  That creates enough space for the numbers at the right of the cell.

MAX函数会在单元格范围内找到最大的数字,然后将其乘以1.3。 这样就为单元格右侧的数字创建了足够的空间。

使用单元格引用 (Use a Cell Reference)

For even more flexibility in the Maximum setting, enter the multiplier in a worksheet cell, then refer to that cell in the Data Bars Maximum formula.

要在“最大值”设置中获得更大的灵活性,请在工作表单元格中输入乘数,然后在“数据栏最大值”公式中引用该单元格。

In the screen shot below, the multiplier is in cell E1 – you could use a cell on a different sheet, if you prefer.

在下面的屏幕快照中,乘数位于E1单元格中–如果愿意,可以在其他工作表上使用一个单元格。

The formula for this Maximum s:  =MAX($C$4:$C$9)*$E$1

此最大值s的公式: = MAX($ C $ 4:$ C $ 9)* $ E $ 1

Then, if you need a little more space for the numbers, increase the multiplier in cell E1. That's quicker than going back into the Edit Rules dialog box.

然后,如果您需要更多空间容纳数字,请增加单元格E1中的乘数。 这比回到“编辑规则”对话框要快。

视频:Excel数据栏 (Video: Excel Data Bars)

This video shows how to set up Excel Data Bars, and change their default settings.

该视频显示了如何设置Excel数据栏以及如何更改其默认设置。

演示地址

下载样本文件 (Download the Sample File)

Learn more about Excel Data Bars on my Contextures website, and download the sample file on that page, to see how they work.

在我的Contextures网站上了解有关Excel数据栏的更多信息,并在该页面上下载示例文件,以查看其工作方式。

翻译自: https://contexturesblog.com/archives/2017/10/12/how-to-fix-excel-data-bars/

excel修复后数据丢失

你可能感兴趣的:(python,java,机器学习,linux,人工智能)