Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Conditional Formatting - one cell value, format whole row

Posted on 2011-02-24
4
Medium Priority
?
568 Views
Last Modified: 2012-05-11
Hi,

I have a spreadsheet whereby I want the whole row to be one colour based on the value of a cell within that row. I have tried using a conditional formatting formula such as:

="IF($A1=""Yes"",TRUE)

But it doesn't work, what am I doing wrong?

Thanks.
0
Comment
Question by:inforr
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
Tracy earned 500 total points
ID: 34970084
Try this:

Select the row, then click Format --> Conditional Formatting.  Select Formula Is and enter this:
=$A$1="Yes"

Then click Format to format to the color you want and click ok.
0
 

Author Comment

by:inforr
ID: 34970096
Bingo! Thank you - knew it was simple!!
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 500 total points
ID: 34970139
If you want to copy the conditional formating to other rows so that the formatting depends on the column A value in that particular row then you should only retain the first $, i.e. use

=$A1="Yes"

Otherwise every row will be formatted according to A1

regards, barry

0
 
LVL 24

Expert Comment

by:Tracy
ID: 34970313
No need to delete this question, just click Accept on the solution you want to accept.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question