Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conditional formatting to color rowsbased on cell value

How can I color rows based on the cell value of one cell in each row? That
is, if I use conditional formatting to test the value of cells in column P, I
can color cells in that column with conditional formatting, but I want all
cells in each row to have the format of the cell in column P of that row.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Conditional formatting to color rowsbased on cell value

You need to "lock" the cell that determines the condition so that this
doesn't "float" across the other cells in your range, which causes each cell
to make that determination independantly. You do this by ensuring that your
condition is something like:

=$P$15

(The '$' symbol is the key that you are missing)

This will force all cells in the row that you have selected for formatting
to only look at P1 instead of their individual values.

For example in excel 2007 you can:

select the cells in your row to recieve the formatting, select conditional
formatting, select 'new rule', select 'use a formula to determine . . . .'.
enter your condition (remember to 'lock' the cell ie. '$P$15')
set your fill colour.

You can drag the row up or down to copy the formatting to other rows, or use
copy, paste special, formats.

You can use this with other styles of formats as well where you are allowed
to enter a formula.

I had the same question a few months back . . . took me a while to figure it
out, but its just that one simple thing.


Mike


"ezrecall" wrote:

How can I color rows based on the cell value of one cell in each row? That
is, if I use conditional formatting to test the value of cells in column P, I
can color cells in that column with conditional formatting, but I want all
cells in each row to have the format of the cell in column P of that row.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is conditional formatting or formula possible by cell color? J Billy Excel Worksheet Functions 2 June 30th 07 05:43 AM
How can I change cell color using conditional formatting Brian Excel Discussion (Misc queries) 1 September 17th 06 02:38 PM
change color of text in cell without conditional formatting sumGirl Excel Discussion (Misc queries) 3 August 16th 06 02:56 PM
Conditional Formatting and Cell Color nemadrias Excel Worksheet Functions 7 July 28th 06 06:01 PM
Cell color change without using conditional formatting Trese Excel Discussion (Misc queries) 2 August 26th 05 07:00 PM


All times are GMT +1. The time now is 05:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"