简体   繁体   中英

Conditional Excel formatting based on another cells value

I want to take a cell and format it based on the value of another cell. For example

I want to from A23 based on the value of C23 but when I select A23 and ass this formula it only formats D23. Also is there a way to duplicated this easily for 29 other rows? A22/D22 for example.

="D23<1%"

Select all of the cells you want to apply the conditional formatting rule to with the cell in the top-left as the active cell. Note the row of this cell. For the sake of argument, I'll say this is row 22.

Clear out the previous attempts at a conditional formatting rule and start a new one. Choose Use a formula to determine which cells to format then supply the following in the Format values where this formula is true: text box.

=$D22<0.01

Note that I've used row 22 in this formula. That should be changed to whatever row your block of cells to receive the CF rule starts with.

Click Format and select some formatting. Click OK to confirm the formatting choices and then OK again to create the new rule.

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