Conditional Formatting

Kanty

New Member
Joined
Jan 15, 2009
Messages
4
Hello!
I have two columns. Lets say column A and column B.
In column B I have positive, negative and nul prices.
If cell B1 has a positive price, I want cell A1 to have green colour.
If cell B1 has a negative price, I want cell A1 to have red colour.
If cell B1 has a zero price, I want cell A1 to have yellow colour.
And I want to do this for all the cells of A column.
Can it be done automatically or I have to do it one by one?

Thank you in advance!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Ohhh!Please I need a answer ASAP cause it is for a project...and I have a deadline for tommorrow!Thank you very much!
 
Upvote 0
does the data start on row 1? This is important

If it does then

1. select all the cells in column A as far down as the data in Column B goes
2. colour them all red
3. select conditional formatting
4. for condition 1, select 'formula is' and type =B1=0
5. set the format to pattern = yellow
6. for condition 2, select formula is and type =B1>0
7. set the format for green
8. note if your data/selection starts on any row other than 1, change the formulas accordingly
9. start earlier next time!
 
Upvote 0
1)Thank for the quick response!
2)I promise I ll be a good girl if I ll finish this one in time!
3)My data starts on row 2.
4)Do I have to do it one by one???

I tried to do the same....like =B2=0 but it doesnt work....
is there a formula to do it all at once???
like for every negative price of the column B the price of the column A has to take red colour????but for all the cells???
 
Upvote 0
The idea was to set them all to red, then the conditional formatting only has to have 2 conditions, one for +ve and one for zero, since all cells are going to be coloured in.

Did you select all the cells in A, from A2 down before you started?
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,749
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top