4.4.15 Conditional Formatting


From Origin 2019, it supports three Conditional Format tools to color the cells in the worksheet.

To open the dialog:

  • Select menu Worksheet: Conditional Formatting: Highlight/ Duplicate/ Heatmap

or

  • Select the cells in the worksheet, then right-click and select Conditional Formatting: Highlight/ Duplicate/ Heatmap


Conditional Format Range Name.png

In three dialogs of the tools, you can specify Range of the cells in the worksheet and Name for the selected range.

By default, the Name is first cell-last cell of the range. For example: if the range is from Column1 Row5 to Column4 Row10, the name will be C1R5-C4R10. Also, you can define the name by entering text. And in the same Worksheet, the name of Conditional Format have been used will list in this drop-box.

Note: for a worksheet, if you have added a Conditional Format, these tools dialog can support to update the rule, but not support to change the data range with the original Name. If you want to just update the range of the Conditional Format, you need to edit it in the Conditional Format Manager


Conditional Highlight

Use this tool to color cells that the value matchs the condition setting in the dialog.

Conditional Format Highlight.png

Rule

Condition When the range (columns) Format = Numeric
  • Options: Condition list 01.png
  • Click the triangle button to bring up the fly-out menu to call the value of statistics and the text-related functions.
Conditional Highlight fly-out.png
  • When you select Custom, the Custom edit box shows. It is used to input conditions. x repersents cells in range.
Conditional Highlight Custom.png


When the range (columns) Format = Date / Time

  • Options: Condition list 02.png
  • Select the date value in the right side box.
Join The default state is None but you can set the drop-down to either And or Or and create a second condition.
Background Specify the background color for the cells value matching the conditions of the rule.
Text Color Specify the text color for the cells value matching the conditions of the rule.


Highlight Duplicate Values

Use this tool to color cells with duplicate value.

Conditional Format Duplicate.png

Option

Backgroud Specify the backgroud color for the cells with duplicate value.
Text Color Specify the text color for the cells with duplicate value.


Conditional Heatmap

Use heatmap to color cells according to the level setting.

Conditional Format Heatmap.png

Level

Auto Rescale Select this check box to auto detect automatically the maximum and minimum value of the range. By defualt, it is checked.
From This is available only when Auto Rescale is unchecked. Use it to specify the minimum value.
To This is available only when Auto Rescale is unchecked. Use it to specify the maximum value.
Find Mi/Max Click this button to detect the maximum and minimum value based on the selected data range, and automatically set the To and From values.
Type Select a type for the level scale. Please see details about the scale type here.
Levels
  • By Increment
Set levels by increment specified by the text box value in the right side
  • By Count
Set levels by count specified by the text box value in the right side
First Level Specify the value of the first level. Note: this value should be larger than or equal to the default value of the first level.

Colors

Format Type

Use the color to Fill Background or Color Text of the cells in the selected range.

Contrast Color for Text Against the background color of the cells, use the contrast color for the text
Color Generation
  • Limited Mixing
Select this option to select a minimum level fill color (From) and a maximum level fill color (To), and to fill the levels between these extremes with a linear mix of the two colors.
  • 3-Color Limited Mixing
Select this option to select a minimum level fill color (From), a middle level fill color (Middle) and a maximum level fill color (To), and to fill a range of cells by using a gradation of three colors.
  • Introducing Other Colors in Mixing
Select this option to have Origin automatically introduce complementary colors into the mix. This option provides fill colors that are more distinct than the ones provided by the Limited Mixing option.
  • Load Palette
Load the palette and apply it to color fills. Click the Select Palette button, you can select one palette from the built-in Increment list or Palettes.
From This is available only when either Limited Mixing, 3-Color Limited Mixing or Introducing Other colors in Mixing is selected. Use it to specify the color for the minimum level.
Middle This is available only when 3-Color Limited Mixing is selected. Use it to specify the color for the middle level.
To This is available only when either Limited Mixing, 3-Color Limited Mixing or Introducing Other colors in Mixing is selected. Use it to specify the color for the maximum level.
Palette This is available only when Load Palette is selected. Select the built-in Increment list or Palettes.
Flip Flip the order of colors for From' and To or in the selected palette.
Below Specify a color and it will be used to the cell that the value less than From value.
Above Specify a color and it will be used to the cell that the value greater than To value.

It can be handy to zoom or pan the Conditional Heatmap:

  • To zoom the worksheet, press CTRL and then rotate the mouse scroll wheel up or down.
Worksheet scroll zoom 2.png
  • To pan the worksheet, click with the mouse wheel (most have this feature) and then with the mouse pointer, lead the circular 4-pointed icon that appears in the direction that you wish to pan. Press ESC on the keyboard to quit.
Worksheet scroll zoom 1.png

Remove Conditional Format

There are two methods to remove the Conditional Format:

  • Highlight the range you added the Conditional Format and select Worksheet: Conditional Formatting: Remove Format in the menu.
OR
  • Active the worksheet with the Conditional Format. Select the menu Worksheet: Conditional Formatting: Conditional Format Manager to open the Conditional Format Manager. Choose the row of Conditional Format in the list, and click Remove button to delete the format control.

Conditional Format Manager

The Conditional Format Manager dialog lists all the Conditional Formats in active worksheet, and it is used to manage the conditional format by editing, reordering and remove them.

To open the dialog: Worksheet: Conditional Formatting: Conditional Format Manager

Conditional Format Manager.png

Edit the Conditional Format

To change the Name:
Double click on the cell of the Name for the Conditional Format to rename it.


To change the Range:

  • Click the range selector button Button Select Data Interactive.png, then you can re-select the range in the Worksheet.


or

  • Double click on the cell of the Range, then you can enter a new range in it.


To update the Rule:

  1. Click on the Conditional Format Edit Rule button.png to reopen the corresponding conditional format dialog.
  2. Update the rule or options in the dialog.

Reorder the Conditional Format

If the range are overlapping in two Conditional Formats, the new added Conditional Format shows in upper of this list. And in the overlapping range of the worksheet will be applied the format of the upper .

To Reorder the Conditional Format:

  1. Select the desired Conditional Format in the list.
  2. Use Conditional Format Move Up button.png or Conditional Format Move Down button.png button to move the Conditional Format.

or

  1. Click on blank place to the left of the desired Conditional Format name, and keep mouse click pressed.
  2. Drag that Conditional Format row up or drop.

Remove the Conditional Format

Select the row of Conditional Format in the list, and click Remove button to delete the format control.