Conditional Formatt...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Conditional Formatting - applying to all rows?

17 Posts
6 Users
0 Reactions
89 Views
Posts: 1103
Free Member
Topic starter
 

I've succeeded in doing conditional formatting for the first row whereby columns A - H go yellow when populated then same columns go green when column J is populated and go red if column I is populated. It's to do with creating and removing permissions for people.

I've tried format painter but that only pastes the amber part of the conditional format. I've tried rewriting the formulas to apply to whole columns but just ends up colouring whole swathes. Dragging first row doesn't seem to work either.

Thanks in advance.


 
Posted : 05/12/2018 10:48 am
Posts: 3066
Free Member
 

Have you tried applying the conditional formatting according to a formula?


 
Posted : 05/12/2018 11:10 am
Posts: 3066
Free Member
 

and dont forget to consider the tick boxes that say 'end if true'


 
Posted : 05/12/2018 11:13 am
Posts: 7169
Full Member
 

Formula in your conditional formatting - has to come out "true" for it to apply.

You might need to use some absolutes, (e.g. $A2 <> "") but after that you should be able to use the auto fill.


 
Posted : 05/12/2018 11:25 am
Posts: 10761
Full Member
 

Select the cell where it works then from the ribbon go to Conditional Formatting/Manage Rules.  Make sure the top bit says "show formatting rules for Current Selection" then on the rule you want to copy change the cell range in the "Applies To" box.


 
Posted : 05/12/2018 11:27 am
Posts: 1103
Free Member
Topic starter
 

Here's the three formulas I'm using and what they apply to and they're in this order for row 3:

TURN ROW RED IF 'YES' SRLECTED IN COL I.

=$I$3="Yes.

Applies to: =$A$3:$3:$B$3,$G$3:$H$H$3    STOP IF TRUE

TURN ROW GREEN WHEN COL J POPULATED.

=NOT(ISBLANK($J$3)).

Applies to: =$A$3:$3:$B$3,$G$3:$H$H$3    STOP IF TRUE

TURN CELLS YELLOW WHEN POPULATED.

==NOT(ISBLANK(A3))

Applies to: =$A$3:$3:$B$3,$G$3:$H$H$3


 
Posted : 05/12/2018 11:37 am
Posts: 10761
Full Member
 

1st formula - $I$3 -> $I3

2nd formula $J$3 -> $J3

Last one is OK


 
Posted : 05/12/2018 11:43 am
Posts: 8652
Full Member
 

TURN CELLS YELLOW WHEN POPULATED.

==NOT(ISBLANK(A3))

Applies to: =$A$3:$3:$B$3,$G$3:$H$H$3

I think your cell references could be simplified

As an example, maybe try replacing the above with

Formula

=AND(COUNTA($A1:$H1)>0,ROW()>1)

Applies to

=$A:$H


 
Posted : 05/12/2018 11:48 am
Posts: 8652
Full Member
 

BTW I included the ROW()>1 so the top row wouldn't be formatted as I assumed this would be your headings but it can be removed or adjusted.

The important part I think is fixing the column e.g. $A1 and not the column and row e.g. $A$1 since you want the format to be applied to all rows


 
Posted : 05/12/2018 11:51 am
Posts: 8652
Full Member
 

and I'm no Excel expert, others may know way better


 
Posted : 05/12/2018 11:52 am
Posts: 1724
Full Member
 

thepurist is correct. You need to remove the absolute references in the formula, then extend the range it applies to, to all cells.


 
Posted : 05/12/2018 12:07 pm
Posts: 8652
Full Member
 

thepurist is giving you the straight answer so

TURN ROW RED IF ‘YES’ SRLECTED IN COL I.

=$I$3=”Yes.

Applies to: =$A$3:$3:$B$3,$G$3:$H$H$3 STOP IF TRUE

could be changed to

=$I3=”Yes"

Applies to: =$A:$H STOP IF TRUE

and include my row check if you want some header rows or go for a specific range like $A$3:$H$250 if you really want to


 
Posted : 05/12/2018 12:09 pm
Posts: 1724
Full Member
 

If you are applying the forumula to different columns rather than different rows, then it needs to be:

=I$3="Yes"

Otherwise, when you apply across other columns, it will keep referring to column I.

Don't apply it A:H either, do A3:H3, otherwise all the cells below row 3 will colour according to the value in row 3.


 
Posted : 05/12/2018 12:12 pm
Posts: 1103
Free Member
Topic starter
 

Thank you all for taking the time to reply. Im going to try and apply your solutions later so hopefully you can do more fun stuff!

Thanks again.


 
Posted : 05/12/2018 12:15 pm
Posts: 1724
Full Member
 

Ignore my last point, jus realised you wanted it across all rows so the A:H will work, as long as you only care about what is in row 3 when formatting the colour.


 
Posted : 05/12/2018 12:20 pm
Posts: 1103
Free Member
Topic starter
 

I've tried $I$3->$I3 but sadly brings an error message. What does the -> do?

The table is column A - K.

Customers populate columns A - I.

After they populate a cell it turns yellow.

If they select Yes in column 'I' then cells A - I (only in that row) turn Red. If 'No' then cells remain yellow.

Finally two of my colleagues will populate cell in column J when they've done their side of things. Doing this will turn the entire row green UNLESS  cell in column 'I' is "Yes" whereby the row remains all Red to show it as a priority.

I've managed this on one line but it's the extending to all rows below that is puzzling me.

Thanks again for your help and patience.


 
Posted : 05/12/2018 2:57 pm
Posts: 1724
Full Member
 

Just remove the $ before the row references in all.formulas.


 
Posted : 05/12/2018 5:59 pm
Posts: 1103
Free Member
Topic starter
 

Thank you all! Removing the $ row reference was the last bit of the solution.


 
Posted : 14/12/2018 9:28 am

6 DAYS LEFT
We are currently at 95% of our target!