Solved

Whole row conditional formatting

Posted on 2011-02-24
12
448 Views
Last Modified: 2012-05-11
I need to highlight the whole row in a table when a cell in a column (say column G) has an entry in it.

Any ideas?

Thank you in advance.
0
Comment
Question by:squirrelzan
  • 4
  • 4
  • 3
  • +1
12 Comments
 
LVL 50

Expert Comment

by:barry houdini
Comment Utility
any entry?

The trick is to use $ in front of the column reference, e.g. if your table is in A2:J20 then select that whole range and then use the formula that would apply to the first row,

=$G2<>""

that;s for any entry. For s specific value like 2 or "x" change to

=$G2-"x"

or

=$G2=2

regards, barry
0
 
LVL 33

Expert Comment

by:jppinto
Comment Utility
0
 
LVL 50

Expert Comment

by:barry houdini
Comment Utility
See attached example

barry
26846267.xlsx
0
 

Author Comment

by:squirrelzan
Comment Utility
Tried all your advices, but what am I doing wrong (see attached)?
Book1.xlsx
0
 
LVL 33

Expert Comment

by:jppinto
Comment Utility
You're not applying to the entire range! See image. That's what you need to put.

jppinto
Capture.JPG
0
 
LVL 33

Expert Comment

by:jppinto
Comment Utility
This is what you had...
Capture.JPG
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:squirrelzan
Comment Utility
That kind of worked over the rows... but I show some highlighted and some not and some are highlighted wrongly. All I did was change the range it applied to.

Thank you for your patience....
Book1.xlsx
0
 
LVL 33

Accepted Solution

by:
jppinto earned 300 total points
Comment Utility
See attachements...it's OK now?
Book1-2-.xlsx
Capture.JPG
0
 

Author Comment

by:squirrelzan
Comment Utility
I copied your "formulas" above (see attached pic) but it still shows the same.... highlighting some and not highlighting others, etc.... (like the spreadsheet I sent earlier, which is the exact copy of the spreadsheet I use).


Pic-1.docx
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 200 total points
Comment Utility
Do you need condition 2? That appears to have an error in it - perhaps you should delete that altogether.

The essential rule for your other condition - the formula should refer to the first row of the range, so if the range starts at row 5 (as it does) then the formula should refer to G5.......alternatively if the formula refers to G2 (as it does) then the range should start at row 2

regards, barry
0
 

Author Closing Comment

by:squirrelzan
Comment Utility
Barry - you are right. I realised where my error was.
jppinto - I realised what you were showing me. Thank you so much for your patience in walking this through with me.
0
 
LVL 10

Expert Comment

by:SANTABABY
Comment Utility
squirrelzan,
When I opened(in excel 2003) your latest worksheet, the conditional format formuale appeared to be incorrect. Please see the attached file:

Xl0000018.xls
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
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…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now