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

文章目录

  • [conditional formatting](#conditional formatting)
    • [data source](#data source)
    • [Conditional Scale](#Conditional Scale)
      • [Conditional Scale](#Conditional Scale)
    • [Conditional Percent](#Conditional Percent)
      • [Conditional Top Percent](#Conditional Top Percent)
    • [Conditional Average](#Conditional Average)
      • [Conditional Average](#Conditional Average)
    • [Multiple Conditions](#Multiple Conditions)
    • [Conditional Bar](#Conditional Bar)
      • [Conditional Bar](#Conditional Bar)
    • [Conditional Unique](#Conditional Unique)
      • [Conditional Unique](#Conditional Unique)
    • [Conditional Value](#Conditional Value)
      • [Conditional Value](#Conditional Value)

conditional formatting

data source

Conditional Scale

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

Conditional Scale


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

Conditional Top Percent


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

Conditional Average


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.

Conditional Bar

Conditional Bar


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

Conditional Unique


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


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
相关推荐
小安运维日记19 分钟前
Linux云计算 |【第四阶段】NOSQL-DAY1
linux·运维·redis·sql·云计算·nosql
kejijianwen1 小时前
JdbcTemplate常用方法一览AG网页参数绑定与数据寻址实操
服务器·数据库·oracle
CoolTiger、3 小时前
【Vmware16安装教程】
linux·虚拟机·vmware16
学习3人组4 小时前
CentOS 中配置 OpenJDK以及多版本管理
linux·运维·centos
厨 神5 小时前
vmware中的ubuntu系统扩容分区
linux·运维·ubuntu
Karoku0665 小时前
【网站架构部署与优化】web服务与http协议
linux·运维·服务器·数据库·http·架构
geek_Chen015 小时前
虚拟机共享文件夹开启后mnt/hgfs/下无sharefiles? --已解决
linux·运维·服务器
(⊙o⊙)~哦5 小时前
linux 解压缩
linux·运维·服务器
牧小七7 小时前
Linux命令---查看端口是否被占用
linux
鸡鸭扣8 小时前
虚拟机:3、(待更)WSL2安装Ubuntu系统+实现GPU直通
linux·运维·ubuntu