Forum Discussion
AmberTafolla
Aug 16, 2024Copper Contributor
Conditional Formatting with Multiple Cell Values
Hello, I am hoping someone know how to help me set up conditional color coding in excel. I am needing certain cells to populate one color if the others cells are filled out wrong and another color if...
Khizar_Hayat
Aug 17, 2024Brass Contributor
Select the Range: Select the range of cells you want to format (e.g., E2:P2). This is the range that will change color based on the conditions.
Create a New Rule: Go to the Home tab, click Conditional Formatting, and then "New Rule".
Use a Formula to Determine Which Cells to Format: Choose this option.
Enter the Formula: This is where the logic for your conditions will go.
For the red condition: =AND(ISNUMBER(E2),H2="F1IL",ISBLANK(J2),ISBLANK(P2))
For the green condition: =AND(ISNUMBER(E2),H2<>"F1IL",ISBLANK(J2),ISNUMBER(P2))
Format the Cells: Click the "Format" button to choose the red fill color for the first condition and green for the second.
Create Another Rule: Repeat steps 2-5 for the green condition.
Order Matters: Ensure the red condition is checked first in the Conditional Formatting Rules Manager (Home -> Conditional Formatting -> Manage Rules). This is important because if both conditions are met, the first one will apply.
Create a New Rule: Go to the Home tab, click Conditional Formatting, and then "New Rule".
Use a Formula to Determine Which Cells to Format: Choose this option.
Enter the Formula: This is where the logic for your conditions will go.
For the red condition: =AND(ISNUMBER(E2),H2="F1IL",ISBLANK(J2),ISBLANK(P2))
For the green condition: =AND(ISNUMBER(E2),H2<>"F1IL",ISBLANK(J2),ISNUMBER(P2))
Format the Cells: Click the "Format" button to choose the red fill color for the first condition and green for the second.
Create Another Rule: Repeat steps 2-5 for the green condition.
Order Matters: Ensure the red condition is checked first in the Conditional Formatting Rules Manager (Home -> Conditional Formatting -> Manage Rules). This is important because if both conditions are met, the first one will apply.