How do I format a cell in Excel based on the value of another cell?
Table of Contents
Excel formulas for conditional formatting based on cell value
- Select the cells you want to format.
- On the Home tab, in the Styles group, click Conditional formatting > New Rule…
- In the New Formatting Rule window, select Use a formula to determine which cells to format.
- Enter the formula in the corresponding box.
How do I represent a current cell in Excel?
Create a named formula called THIS_CELL

- In the current worksheet, select cell A1 (this is important!)
- Open Name Manager (Ctl+F3)
- Click New…
- Enter “THIS_CELL” (or just “THIS”, which is my preference) into Name:
- Enter the following formula into Refers to:
- Under Scope: select Workbook .
How do I format a cell if another cell contains text?
Apply conditional formatting based on text in a cell
- Select the cells you want to apply conditional formatting to. Click the first cell in the range, and then drag to the last cell.
- Click HOME > Conditional Formatting > Highlight Cells Rules > Text that Contains.
- Select the color format for the text, and click OK.
Can you conditional format a cell based on another cell?
To highlight cells based on another cell’s value, you can create a custom formula within a conditional formatting rule. Select the range you want to apply formatting to. In the Ribbon, select Home > Conditional Formatting > New Rule.
How do you use conditional formatting with multiple rules?
1 Answer

- Select all cells in the sheet (by pressing on the top left corner):
- With selected range go to “Conditional Formatting -> New Rule..”
- Select “Use formula…” rule type, enter formula =AND($E1>30,$L1>100) . Choose desired format and press “OK”
How do you add a formula to the current cell?
What is ISNA formula?
The Excel ISNA function returns TRUE when a cell contains the #N/A error and FALSE for any other value, or any other error type. You can use the ISNA function with the IF function test for #N/A and display a friendly message if the error occurs. Test for the #N/A error. A logical value (TRUE or FALSE) =ISNA (value)
How do you create a rule in Excel?
You can also use this screen to create, edit and delete rules. 1. Select cell A1. 2. On the Home tab, in the Styles group, click Conditional Formatting. 3. Click Manage Rules. The Conditional Formatting Rules Manager appears. Note: because we selected cell A1, Excel shows the rule applied to the range A1:A10.
How to add your own Excel formatting rules manually?
– Select the data set: B5:G49. – On the Home tab, click Conditional Formatting in the Styles group and choose New Rule from the dropdown list. – In the top pane, select Use A Formula To Determine Which Cells To Format. – In the lower pane, enter this formula: AND ($D5<=$F5,$G5=$G$1). – Click Format.
What are conditional formatting rules in Excel?
You can’t apply icons,color scales,or data bars with a custom formula.
How do you manage rules in Excel?
– Click on “New Rule”, and the “New Formatting Rule” dialog box will get activated. – Select a rule type “Format only cells that contain”. – In the 2 nd dropdown menu, select “Containing”, type “B” in the box. – In the dialog box below the “Format” option is shown. – In the “Conditional Formatting Rules Manager” dialog box, click on apply, then click on OK.