excel如何使用色阶 excel色阶的用法

经验直达:

  • excel色阶的用法
  • excel如何使用色阶

一、excel色阶的用法


如果用ExcelVBA,我给做个参考
Sub dwe()
【excel如何使用色阶 excel色阶的用法】For Each rg In Range("A1", Cells(Rows.Count, "A").End(xlUp))

Range("B" & rg.Row, "D" & rg.Row).Select
Selection.FormatConditions.AddColorScale ColorScaleType:=3
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
Selection.FormatConditions(1).ColorScaleCriteria(1).Type = _
xlConditionValueLowestValue
With Selection.FormatConditions(1).ColorScaleCriteria(1).FormatColor
.Color = 8109667
.TintAndShade = 0
End With
Selection.FormatConditions(1).ColorScaleCriteria(2).Type = _
xlConditionValuePercentile
Selection.FormatConditions(1).ColorScaleCriteria(2).Value = https://www.itzhengshu.com/excel/50
With Selection.FormatConditions(1).ColorScaleCriteria(2).FormatColor
.Color = 16776444
.TintAndShade = 0
End With
Selection.FormatConditions(1).ColorScaleCriteria(3).Type = _
xlConditionValueHighestValue
With Selection.FormatConditions(1).ColorScaleCriteria(3).FormatColor
.Color = 7039480
.TintAndShade = 0
End With
Next
End Sub

excel如何使用色阶 excel色阶的用法



二、excel如何使用色阶


在excel中设置色阶 , 是为了能在表格中按照大?。来翁畛洳蝗莸难丈?nbsp;, 用来区分,具体操作步骤如下 。
工具/原料
excel
方法/步骤
1
打开“示例.xlsx”,要求将目标列单元格中的数据通过色阶的形式显示出来 。
2
在工作表中选中目标单元格区域,切换至“开始”选项卡 。在“样式”,选项组中,单击“条件格式”按钮 。
3
在下拉列表中,将光标指向“色阶” 。
4
在其级联菜单中 , 选择合适的色阶样式 。这里选择第一种样式 。
5
返回工作表,可以看到单元格数值都以色阶的形式显示出来了 。

相关经验推荐