当前位置: 首页 > news >正文

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

文章目录

  • conditional formatting
    • data source
    • Conditional Scale
      • Conditional Scale
    • Conditional Percent
      • Conditional Top Percent
    • Conditional Average
      • Conditional Average
    • Multiple Conditions
    • Conditional Bar
      • Conditional Bar
    • Conditional Unique
      • Conditional Unique
    • Conditional Value
      • Conditional Value

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

http://www.mrgr.cn/news/5571.html

相关文章:

  • 旅游巴士(bus)【CSPJ2023】
  • 根据正则表达式生成等价类测试用例的设计和实现思路
  • TikTok达人带货秘籍:打造从流量到转化的高效社交电商闭环
  • vue中 在scoped下通过@import引入scss的作用域?
  • 云原生周刊:Kubernetes v1.31 发布
  • 大模型入门必读书籍《大语言模型》.附pdf 免费阅读
  • SpringBoot响应式编程(4)Spring Security Reactive
  • 【区块链基础】区块链的基本概念与工作原理
  • 【MobaXterm】查找输出结果的关键字
  • 【MYSQL】MySQL 数据类型
  • Prometheus 服务发现
  • 《黑神话.悟空》:一场跨越神话与现实的深度探索
  • Android系统安全 — 1-OpenSSL支持的常用加解密算法介绍
  • JAVA中反射原理分析
  • C#中的 ref关键字用于实现按引用传递参数
  • 安卓窗口window无法移除屏幕外超过屏幕边界?-wms源码层面深入剖析
  • 【JVM】剖析字符串与数组的底层实现(二)
  • 微服务CI/CD实践(一)环境准备及虚拟机创建
  • 深入剖析Self-Attention自注意力机制【图解】
  • Stable Diffusion AI绘画工具的安装与配置(MAC用户)