Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel Conditional Formatting based on Other Column

I have two columns in Excel as shown on the picture below.

enter image description here

I need to apply conditional formatting in this way:

if row in B column contain "1", the cell A on the same row should change its color. This needs to be applied only for the cell in A column, not whole row. Is there any option how to do this?

like image 218
DNac Avatar asked Nov 04 '13 13:11

DNac


People also ask

Can you do conditional formatting based on another cell?

Highlight Cells 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 conditional format if one column is greater than another?

Click in the column, then choose Editor > Conditional Formatting > Highlight Cell > Greater Than. Click in the column, right-click, then choose Conditional Formatting > Highlight Cell > Greater Than.


1 Answers

Follow these steps and your problem will be solved ;)

  1. Set your formula to =$B2=1
  2. Select the fill color Yellow
  3. Applies to =$A$2:$A$7
  4. Once you click Apply, make sure your formula hasn't changed! (always happens to me)

enter image description here

enter image description here

like image 110
CustomX Avatar answered Oct 01 '22 21:10

CustomX