【GH】【EXCEL】P3: Set Conditional Formatting To Excel Data By Gh

conditional formatting

data source

image-20240819220309583

Conditional Scale

The Conditional Scale colors the cell backgrounds based on their relative numeric values with a 2 or 3 color gradient

image-20240819221141229

Conditional Scale

image-20240819221335390


Add conditional formatting colors to a Range based on relative values


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name
  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)
  • Parameter (Number) The parameter of the midpoint of a 3 color gradient
  • Gradient Color 1 (Colour) The first color of the gradient
  • Gradient Color 2 (Colour) The second color of the gradient
  • Gradient Color 3 (Colour) The third color of the gradient
  • Clear (Boolean) If true, the existing conditions will be cleared
  • Activate (Boolean) If true, the condition will be applied

Output parameters:

  • Range (Generic Data) An Excel Range Object

Conditional Percent

The Conditional Percentages colors the cell backgrounds based on their relative pecentile numeric values

image-20240819222244594

Conditional Top Percent

image-20240819222422203


Add conditional formatting to a Range based on the top percent


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name
  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)
  • Percentage (Number) The percentage of the values to highlight
  • Cell Color (Colour) The cell highlight color
  • Flip (Boolean) If true, the 'bottom 'percent will be highlighted
  • Clear (Boolean) If true, the existing conditions will be cleared
  • Activate (Boolean) If true, the condition will be applied

Output parameters:

  • Range (Generic Data) An Excel Range Object

Conditional Average

The Conditional Average colors the cell backgrounds based on their status relative to other numeric values

image-20240819223510334

Conditional Average

image-20240819223639311


Add conditional formatting to a Range based on the average of the values


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name
  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)
  • Type (Integer) The condition type
  • Cell Color (Colour) The cell highlight color
  • Clear (Boolean) If true, the existing conditions will be cleared
  • Activate (Boolean) If true, the condition will be applied

Output parameters:

  • Range (Generic Data) An Excel Range Object

Multiple Conditions

Conditional formatting can be layered to place multiple conditions on overlapping ranges.

image-20240819224311911

Conditional Bar

image-20240819225211627

Conditional Bar

image-20240819224511660


Add conditional formatting bar to a Range based on relative values


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name
  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)
  • Cell Color (Colour) The cell highlight color
  • Gradient (Boolean) If true, the bars will be a gradient
  • Clear (Boolean) If true, the existing conditions will be cleared
  • Activate (Boolean) If true, the condition will be applied

Output parameters:

  • Range (Generic Data) An Excel Range Object

Conditional Unique

image-20240819230202523

Conditional Unique

image-20240819225849361


Add conditional formatting to a Range based on unique values


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name
  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)
  • Cell Color (Colour) The cell highlight color
  • Flip (Boolean) If true, non unique values will be highlighted
  • Clear (Boolean) If true, the existing conditions will be cleared
  • Activate (Boolean) If true, the condition will be applied

Output parameters:

  • Range (Generic Data) An Excel Range Object

Conditional Value

Conditional Value

image-20240819230405567


Add conditional formatting to a Range based on a value


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name
  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)
  • Value (Number) The value to check against
  • Type (Integer) The condition type
    • Greater
    • GreaterEqual
    • Less
    • LessEqual
    • Equal
    • NotEqual
  • Cell Color (Colour) The cell highlight color
  • Clear (Boolean) If true, the existing conditions will be cleared
  • Activate (Boolean) If true, the condition will be applied

Output parameters:

  • Range (Generic Data) An Excel Range Object
  • 8
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hmywillstronger

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值