【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
相关推荐
云只上7 小时前
前端插件使用xlsx-populate,花样配置excel内容,根据坐添加标替换excel内容,修改颜色,合并单元格...。
excel
IT_张三8 小时前
Ubuntu Linux运维实战指南4_文件系统基础知识
linux·运维·ubuntu
陈译8 小时前
Grafana——如何迁移Grafana到一台新服务器
运维·服务器·grafana
小哥山水之间8 小时前
在 Python 中操作 Excel 文件
开发语言·python·excel
wangjun51598 小时前
linux redis ipv6、ipv4 只接收本地访问、接收本地和远程访问
linux·运维·服务器
x66ccff8 小时前
【nvidia】NCCL禁用P2P后果权衡
服务器·网络协议·p2p
eaglesstone9 小时前
centos 9 时间同步服务
linux·运维·centos
信阳农夫9 小时前
linux中yum是干啥的?
linux·运维·服务器
YH_DevJourney9 小时前
Linux-C/C++《C/7、字符串处理》(字符串输入/输出、C 库中提供的字符串处理函数、正则表达式等)
linux·c语言·c++
黑客老李9 小时前
新手小白如何挖掘cnvd通用漏洞之存储xss漏洞(利用xss钓鱼)
java·运维·服务器·前端·xss