简体   繁体   中英

How to get Formula Behind Conditional Formatting in Excel

How can I get formula applied behind conditional Formatting for highlighting Cells?

Conditional Formatting is applied based on text in each cell of Test Result column(third column). 列突出显示

Formulas List: 总共应用了5个公式

Purpose is to reuse (copy paste) the formula in other sheets.

The formula is shown in your first screenshot. The dialog has the formula in the column "Rule applied (in order shown)". These rules use the out of the box settings to format cells based on their values, so the "formula" is not accessible for editing.

But the format can be copied to other cells very easily.

Here are the steps:

  • Select the cell with the conditional format and copy it
  • click the cell where you want to apply the same format
  • use Paste Special > Format to paste just the format to the selected cell

Edit: If you don't use the built-in conditional formats but instead select "Use a formula to determine ...", you can construct the formulas manually. 在此处输入图片说明

There is no automated way to convert the existing out-of-the-box rules to fomulas. You will need to use your human understanding of the logic and appy this to formulas. So, for example, if the selected cell is H3, you can us this formula

=H3="Fail"

and format the cell with red font and light red background. Note that there are no $ signs in the reference to the cell H3. If you copy that format to another cell, it will apply to that other current cell.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM