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

x
?
Solved

Conditional formatting

Posted on 2014-11-13
9
Medium Priority
?
92 Views
Last Modified: 2014-11-13
I have 5 columns, with a header.
There are two basic types of rows - those that have a code of XXXXXX-00 and those that don't.
I want all of these rows (entire row) to be a distinguishable color and the alternates to be some slightly different color.
I could get it working with just the leading cell (col A) only, but it wouldn't highlight the entire row.
Is there a way to setup conditional formatting to do this?  Wanted to stay away from a macro solution if possible...
0
Comment
Question by:sirbounty
9 Comments
 
LVL 7

Accepted Solution

by:
tomfarrar earned 1600 total points
ID: 40440548
http://www.howtogeek.com/howto/45670/how-to-highlight-a-row-in-excel-using-conditional-formatting/

See paragraph starting with:

"Now that we have a working formula, let’s apply it across our entire table. As you can see above, the formatting applies only to the cell we started off with. Click the button next to the Applies to field and drag the selection across your entire table."
0
 
LVL 27

Assisted Solution

by:ProfessorJimJam
ProfessorJimJam earned 200 total points
ID: 40440551
You need to select the entire region then put the formula, your formula doesn't work because you didnot select the entire region I mean entire rows
0
 
LVL 35

Assisted Solution

by:Norie
Norie earned 200 total points
ID: 40440563
Select all the rows.

Goto conditional formatting.

Select Use formula to...

Enter this formula, changing 2 to the first row in the rows you selected.

=$A2=" XXXXXX-00"

Format as required.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 67

Author Comment

by:sirbounty
ID: 40440631
I thought I had the first column working, but now it's highlighting the opposite data.
My formula is
=RIGHT($A2,3)="-00"
but these cells don't get highlighted as I've set it... : \
0
 
LVL 67

Author Comment

by:sirbounty
ID: 40440682
Weird - even setting the formula to =A2 doesn't change that single cell... wonder if I've done something somewhere... :(
0
 
LVL 67

Author Comment

by:sirbounty
ID: 40440703
Somehow I fixed that, but it's still not formatting the rows... still trying.
0
 
LVL 67

Author Comment

by:sirbounty
ID: 40440718
Ok, I've determined that setting a conditional format formula fails:
=RIGHT(TRIM($A$2),3) (just trying to grab the "-00" which doesn't seem to work either.

If I use the text, ends with =RIGHT(TRIM($A$2),3), it will highlight the first column, but even selecting the range does not format the rows...
0
 
LVL 67

Author Closing Comment

by:sirbounty
ID: 40440727
=RIGHT(TRIM($A2),3)="-00" finally worked for me - had that extra $ in there...oops. :^)
0
 
LVL 7

Expert Comment

by:tomfarrar
ID: 40440747
RIGHT(TRIM($A$2),3)......  Your $A$2 is selecting only A2.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

886 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