If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Formatting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-04, 13:21
JShubert26 JShubert26 is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
Question Formatting

Hi, I have an spreadsheet with about 15 columns and 300 rows (and growing). I want to setup a conditional format that when 1 cell has a certain value, the entire row changes color. Any help would be appreciated! Thanks
Reply With Quote
  #2 (permalink)  
Old 07-14-04, 02:38
starsky51 starsky51 is offline
Registered User
 
Join Date: Feb 2002
Posts: 8
Hi JS..

Highlight the entire row
Format->Conditional Formatting...
change the condition type to 'Formula Is'
enter =($A$1="yes")
(assuming that A1 is the conditional cell and "yes" is the conditional value)

Dave.
Reply With Quote
  #3 (permalink)  
Old 07-14-04, 13:11
JShubert26 JShubert26 is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
Do you know how to set that up so I don't go row by row, I want to enter just 1 condition that will apply to all rows.
Reply With Quote
  #4 (permalink)  
Old 07-15-04, 02:20
starsky51 starsky51 is offline
Registered User
 
Join Date: Feb 2002
Posts: 8
OK, try this:
set the conditional format for all rows to:
=(OFFSET($A$1,ROW()-1,1)="YES")
This OFFSET function looks up a cell which is a specified number of columns and a specified number of rows away from cell A1.
As it stands this formula will reference the cell in column B for each row. Changing the '1' that I have highlighted will change the column referenced (eg.
=(OFFSET($A$1,ROW()-1,2)="YES") would reference column C
=(OFFSET($A$1,ROW()-1,3)="YES") would reference column D
etc...)

Hope this makes sense,
Dave.
Reply With Quote
  #5 (permalink)  
Old 07-15-04, 04:27
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Slightly easier way is to leave the string out of the formula from before i.e.

=(A$1="yes") to pick up columns or

=($A1="yes") to pick up rows

this works as long as your intial cell is A1

HTH
David
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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