![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 1
|
I have a large table of data and I want to be able to distinguish a row of data (by shading the entire row) based on the information in one cell (B -Blue, R -Red and Y -Yellow).
As above one cell will have B, Y or R within and I want to be able to highlight the whole row of data, using conditional formatting, based on this one cell. Can I do this? |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Minnesota
Posts: 92
|
Using three conditions it seems easy. Lets say you want to highlight row 1 based on the value of cell A1. Highlight the row, go to Format>Conditional Formatting. Use "Formula Is", use the formula =$A$1="B" and then select the blue shading. Then use the Add button to add another formula, use =$A$1="Y" and select yellow shading, and then same thing for red =$A$1="R". HTH
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
1. Highlight the entire row in question. 2. Format>Conditional Formatting>FormulaIs =$C$1="B" and format for condition 1 3. Repeat step two for "Y" and "R" in conditions 2 and 3. Bye, Jay |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Sep 2002
Posts: 63
|
I have a simliar but different problem. I have a long row of data and each cell is shaded either red, yellow, or blue. All of these shaded cells are in row 3. How can I format rows 2 and 1 to shade the same color as row 3? Example, if A3 is red, then A1 and A2 should be red. If B3 is blue, then B1 and B2 should be blue. Thanks!!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|