Reputation: 15118
I want to know what I would need to type into the formula box in excel to solve the problem outline below:
Key: *Variable/Cell*
IF *cellnumber* = 0 shade cells red
IF *cellnumber* > (more than) 0 but < (less than) *cell number* shade cells yellow
IF *cellnumber = *cellnumber* shade cells green.
Upvotes: 0
Views: 18790
Reputation: 1768
You want Conditional Formatting. Pre-Excel 2007 go to the Data menu and click conditional formatting. Excel 2007 or later go to the Home ribbon and click Conditional Formatting. Here is a guide to conditional formatting that shows something similar to what you need.
As for the second and third condition that apply to the value in another cell, you can put a reference in the conditional formatting window similar to "Cell Value : Equal to :" then =$A$1 in the value box.
For 2011: Any quotes below should NOT be typed. This assumes the cell you want to check against is A1.
Upvotes: 4