Solved

Whole row conditional formatting

Posted on 2011-02-24
12
458 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
ID: 34974843
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
ID: 34974865
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34974872
See attached example

barry
26846267.xlsx
0
 

Author Comment

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

Expert Comment

by:jppinto
ID: 34974932
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
ID: 34974937
This is what you had...
Capture.JPG
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:squirrelzan
ID: 34974978
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
ID: 34975038
See attachements...it's OK now?
Book1-2-.xlsx
Capture.JPG
0
 

Author Comment

by:squirrelzan
ID: 34975094
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
ID: 34975128
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
ID: 34975154
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
ID: 34975345
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

919 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

17 Experts available now in Live!

Get 1:1 Help Now