Worksheet: Conditional Formatting: Pareto
Calculate count of selected worksheet cells, order them from top frequent to least frequent, and color the most/least frequent items.
1. wcolorPareto rng:=[Book1]Sheet1!A:B name:="C1R1-C4R0";
2. wcolorPareto rng:=[Book1]Sheet1!A:B name:="C1R1-C2R0" rule:=1 tr.fill:=31306751 tr.font:=32497615;
3. wcolorPareto rng:=[Book1]Sheet1!A:B name:="C1R1-C2R0" rule:=2 n:=10;
Please refer to this page for additional option switches when accessing the x-function from script.
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| Range | rng |
Input Range |
<active> | Specify range of the cells in the worksheet to apply conditional formatting. |
| Name | name |
Input string |
Specify the name for the selected range. | |
| Rule | rule |
Input int |
0 | Determine which cells to be colored. Options:
|
| N | n |
Input Double |
1 | Specify the number of the most/least frequent items to be colored. |
| Format | tr |
Input TreeNode |
<unassigned> | Set the colors. See details in the table below. |
Syntax: tr.treenode=value
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| Background | fill |
Input Double |
30067455 | Specify the filled color of worksheet cells |
| Text Color | font |
Input Double |
20132812 | Specify the font color . |
Calculate count of all items in the selected range, and order them from top frequent to least frequent like Pareto chart. An then color the most/least frequent N items.
wcolor, wcolordup, wheatmap, wcolorbycr, wcolortb, wcoloroutlier
Keywords:cell coloring