I have a data validation set up for a list to choose from (B7:B1000), only two words can be selected: PP or SW. I have figured out a conditional format to fill the row if PP is selected but I need to apply this to the whole spreadsheet. I am having to apply conditional formatting for every row and it's time consuming if I need to do this for 1,000 rows.
I selected Use a formula to determine which cells to format. This is what I currently have it set up as:
=B7="PP" conditional formatting to be applied to =$F$7:$N$7
I now need to do this for all rows in the spreadsheet:
=B8="PP" conditional formatting to be applied to =$F$8:$N$8
=B9="PP" conditional formatting to be applied to =$F$9:$N$9
=B10="PP" conditional formatting to be applied to =$F$10:$N$10
and so on.
Is there a quicker way rather than manually doing this for 1,000 rows?
I have tried the format painter but its just copies the previous formula. Tried removing the $ symbols but when I click Apply they are re-inserted.
Your Title makes me wonder whether you would like some formatting for SW as well as PP but guessing you don't then in Row7 please try:
=$B7="PP"
for the CF formula and make sure Applies to shows =$A$7:$Z$1000 - or whatever column reference you choose in place of Z.
Related
I'm trying to create a rule that formats a row so that it has red background color if the content of another row is "x". Unfortunately, the header and empty cells above the table will be included if I simply select =$H:$H="x" as my condition for formatting. I want something like: =$H$6:$H$(INFINITY). Is this possible?
If you want to apply the conditional formatting starting from Row6, while selecting the range for applying the conditional formatting, make sure C6 should be the first cell in the selection i.e. it should be the active cell in the selection and then make a new rule for conditional formatting using the formula given below.
=$H6="x"
Also if you are not sure how far you need to apply this conditional formatting down the rows, would be better if you format your data as an Excel Table, so when the data grows withing the table down the rows, the conditional formatting will also be carried to the new rows added in the table.
Having a conditional formatting for a unused range on the sheet increases the file size as all the rows contain the conditional formatting and the formula in the background.
You can just use =$H$6:$H$1048576 or =$H$6:$H$65536 while applying conditional formatting. A simplest way of doing this.
Your formula does lag a lot as you are searching through so many rows down. THe best thing you can do is try to limit the amount of rows to search. I.e. if you know your dataset only contains max 5000 rows, set the limit to that H6:H5000. This will help.
If the rows change a lot, the best way would be to make it dynamic. I.e. make a name range for the range you want to validate and in the name manager, change the range to include offset. This will help you set the range to be what you have data in. Note: You need to know how many rows (i.e. use counta) which you will need to figure out if there are blanks at any point. Otherwise you do the counta on a column where you have no blanks.
Hope this makes sense and easy for you.
I have some cells with some different filling colors.I want to do the following thing: I want to use those colors in conditional formatting rules, so when I change the color of a cell, the conditional formatting color will change too.
Like in this image
In the screenshot above, there is a zone called "Legendă". So when I change the color of a cell there, the others cells with the same color will change too. The other cells have conditional formatting rule.
In general, formatting is not considered source data in Excel. The workaround, then, is to put the information in a new column.
Say you were formatting column B and wanted those colors to modify formatting elsewhere. The idea is to create another column and add your data there, and then create a conditional formatting formula for column B (and any other columns) that refers to your new data. This way, you can get as many columns as you want to respond appropriately.
I have created conditional formatting in a date column to show red if it's expired, orange if it's 30 days out from expiring. My boss now wants me to apply this to every register/database that exists. Problem is that some of the worksheets have multiple date columns and are not one after the other.
I haven't worked out how to copy and/or past the conditional formatting to the other date columns on the worksheets without redoing the conditional formatting from scratch.
Any solutions?
Assuming this is for Excel and you are dealing with entire columns then I suggest starting again (so we know what formulae are in use and that the Applies to range is a complete column) with, say for ColumnA, HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(A1<>"",A1<TODAY()+30)
Format..., select orange, OK, OK.
Then repeat for red with:
=AND(A1<>"",A1<TODAY())
If these suit for ColumnA you should then be able to pick any one of the conditionally formatted cells, click Format Painter then, select whichever other columns you wish the rules to apply to.
Note that the order in which these rules are applied is significant. In Conditional Formatting Rules Manager red should be above orange (their order may be changed with the up/down arrows) and I'd suggest for red checking Stop If True).
I'm currently making a spreadsheet with a bunch of parameters. However, some sets of data will not have to include these parameters, so I want to be able to apply a greyfill color to multiple columns based on a "No" appearing in a different column. So far, I've been able to only get this formatting to apply to one other column at a time, and I must duplicate the rule for every additional column I want it to apply to. I got it to work so far by using the formula rule =H1:H10000="N", but when I choose to apply this to $K:$Q it will only grey out the relative rows in column K
Select your range
check the row of the active cell (1 in this example):
Enter the following formula in your conditional formatting (replace 1 by the active cell's row):
=$H1="N"
And that should do what you need.
I've got some excel spreadsheets with a couple hundred to couple thousand rows. Each row represents a set of measurements taken at one second intervals.
I want to use the 3 color conditional formatting for each row. I can setup a single row for the 3 color by setting the "Applies to" to something like:
'Table1'!$B$2:$M$2
However, if i try to copy the format and then apply it to multiple rows, (say B3:M400), it will treat the entire block (all cells from B3 through M400) as a single conditional format, so each cell is colored according to all of the other cells. What i'm looking for is a way to apply the 3 color conditional formatting to each row individually over many many rows.
For example, in the image linked here: http://electriceptor.files.wordpress.com/2012/04/screen-shot-2012-04-30-at-11-53-36-pm.png (sorry, i'm too new to post images), each of the rows has an individual 3 color format that i manually applied to each row.
However, if i copy a single row and paste the format into that same block of 7 rows, it looks like this image: http://electriceptor.files.wordpress.com/2012/04/screen-shot-2012-04-30-at-11-56-42-pm.png:
Note how the formatting is applied to the entire block.
Is there a way to apply the conditional formatting for each row individually without doing each row manually?
Since 3-color conditional formatting doesn't accept relative references (no matter how much you try to 'trick' Excel with INDIRECT, ADDRESS, etc.), your best bet is to use the method here (example was for 2-color formatting): https://superuser.com/questions/350378/excel-2007-conditional-formatting-so-that-each-row-shows-low-values-yellow-hig
This is the same as using the format painter on each individual row (using the format painter on multiple rows puts you back to square one where it looks at all the rows).
Sub NewCF()
Range("B1:M1").Copy
For Each r In Selection.Rows
r.PasteSpecial (xlPasteFormats)
Next r
Application.CutCopyMode = False
End Sub
Also, there's no limit to the number of conditional formatting rules (at least in Excel 2010), but the more you have, the more potential there is for a negative impact on performance. You'll just have to try it and see. In the worst-case scenario, I would make 3-10 (or however many you can stand to make) individual rules based on a formula to create a "gradient", but this may be just as cpu-intensive.
I've just tried using the fill handle on a cell with conditional formatting e.g. =COUNTIF(C2,"Yes")=1 then applies to $A2 and then selected that cell and dragged the fill handle - it adds the conditional formatting to each row automatically! jippee!