ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional formatting a range of cells. (https://www.excelbanter.com/excel-discussion-misc-queries/152145-conditional-formatting-range-cells.html)

DBane

Conditional formatting a range of cells.
 
I am working in the cell range of A:1 thru A:5. If cell A:3 contains the
letter T, I would like to have the whole range A:1 thru A:5 turn green. If
cell A:3 contains the letter D, the range turn brown. And last if A:3
contains the letter S, the range turn purple.

Bernard Liengme

Conditional formatting a range of cells.
 
Select the range A1:A5
Use Format | Conditional Formatting; set dialog to Formula Is and enter
=$A$3="T" and click the Format button; now on the Pattern tab select one of
the greens.
You can now add the next two conditions in like manner.

BTW; the correct way to refer to a single cell is A3 not A:3, We use to
colon for ranges as in A1:A3
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"DBane" wrote in message
...
I am working in the cell range of A:1 thru A:5. If cell A:3 contains the
letter T, I would like to have the whole range A:1 thru A:5 turn green. If
cell A:3 contains the letter D, the range turn brown. And last if A:3
contains the letter S, the range turn purple.




Gord Dibben

Conditional formatting a range of cells.
 
First of all, when describing cell references, get rid of the colons

A:1 is just A1 A1:A5 is a range from A1 through A5

On to the question.

Select A1:A5 and FormatConditional Formatting.

Condition 1Formula is: =$A$3="T" format to green pattern.

Click on "Add" to add Condition 2

Condition 2 and 3 will be set up with the other two letters and different
colors.

Note the $ signs in $A$3 which locks that cell as the trigger cell.


Gord Dibben MS Excel MVP


On Sun, 29 Jul 2007 08:36:01 -0700, DBane
wrote:

I am working in the cell range of A:1 thru A:5. If cell A:3 contains the
letter T, I would like to have the whole range A:1 thru A:5 turn green. If
cell A:3 contains the letter D, the range turn brown. And last if A:3
contains the letter S, the range turn purple.



DBane

Conditional formatting a range of cells.
 
Thank you for the reply. Now I am having a problem copying the format into
other cell ranges. I am working with this format in hundreds of cell ranges.
I cant drag the format ,or copy it like excel formulas. The cell adresses are
staying the same as the orginal ones formatted. how do I copy them to change
them to there new cell adressses like what is done with formulas.

"Bernard Liengme" wrote:

Select the range A1:A5
Use Format | Conditional Formatting; set dialog to Formula Is and enter
=$A$3="T" and click the Format button; now on the Pattern tab select one of
the greens.
You can now add the next two conditions in like manner.

BTW; the correct way to refer to a single cell is A3 not A:3, We use to
colon for ranges as in A1:A3
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"DBane" wrote in message
...
I am working in the cell range of A:1 thru A:5. If cell A:3 contains the
letter T, I would like to have the whole range A:1 thru A:5 turn green. If
cell A:3 contains the letter D, the range turn brown. And last if A:3
contains the letter S, the range turn purple.





David Biddulph[_2_]

Conditional formatting a range of cells.
 
Look at help for the difference between absolute addressing and relative
addressing.
--
David Biddulph

"DBane" wrote in message
...
Thank you for the reply. Now I am having a problem copying the format into
other cell ranges. I am working with this format in hundreds of cell
ranges.
I cant drag the format ,or copy it like excel formulas. The cell adresses
are
staying the same as the orginal ones formatted. how do I copy them to
change
them to there new cell adressses like what is done with formulas.

"Bernard Liengme" wrote:

Select the range A1:A5
Use Format | Conditional Formatting; set dialog to Formula Is and enter
=$A$3="T" and click the Format button; now on the Pattern tab select one
of
the greens.
You can now add the next two conditions in like manner.

BTW; the correct way to refer to a single cell is A3 not A:3, We use to
colon for ranges as in A1:A3
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"DBane" wrote in message
...
I am working in the cell range of A:1 thru A:5. If cell A:3 contains
the
letter T, I would like to have the whole range A:1 thru A:5 turn green.
If
cell A:3 contains the letter D, the range turn brown. And last if A:3
contains the letter S, the range turn purple.








All times are GMT +1. The time now is 04:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com