Is there a way for Conditional Formatting in Excel to refer to a whole column from the original reference column?
For example, i want the E column to refer to the C column such that if the dates in the E column are 2 days after the dates in the E column, it will turn green. And i want to be able to do this as fast as possible.
The problem is that right now even if the function would just be the same for the E to C column at each row, i have to do it one by one. Is there anyway to match the whole E column to the C column?
Thanks!
You can use conditional format on the first cell in the column, and use the format painter to copy it to the rest of the column. Use a formula like '=B1=A1+2' as condition for the first cell. Make sure there are no dollarsigns in the formula!
Alternatively, you could use manage rules to apply them to a range. Have a look at the pictures below. I cannot post them here because I have not enough credits yet :-)
http://i.stack.imgur.com/FA3o9.jpg
http://i.stack.imgur.com/qYcvQ.jpg
There is a function called auto fill in Excel. The auto fill function makes it possible to automatically fill in your function in a whole column with just a few clicks.
link to tutorial
Example of auto fill:
Enter 1 in cell A1
Write =(A1+1) in cell A2
Select cell range A2:A10
Click on "Fill" in the ribbon (see image)
Select Down
Now there is numbers 1-10 in columns A1:A10
You may use this feature to add cells with your function in a whole column.
Related
I'm trying to create a form in excel for my team to fill out which highlights certain cells in a row as compulsory (format the cell colour) based on the number from a table in another sheet which has 3 preset dimensions ("M"=Mandatory, "P"=Prohibited, "O"=Optional) for each number across multiple analysis field.
I have tried conditional formatting formulas to highlight the cell to fill out if the lookup of the number chosen returns "M") but I don't seem to have a formula which validated this and returns with the cell highlighted when it needs to completed.
I would like the formula to return the cell as highlighted if it is mandatory based on the lookup to the table and need the user to fill out the cell with the information relevant.
Any help would be much appreciated.
If I understand your question correctly you just want the cell to highlight when its sister cell in another sheet is coded "M". That's a fairly easy formula.
=Sheet2!$B1="M"
This is for a straight column in B, where the cell it's checking against is in sheet 2 and also in column B. If it's for a row simply move the $ to say b$1.
If you want the highlight to disappear when the cell is filled in use this formula:
=AND($B1=0,Sheet2!$B1="M")
Could you please lead me in below task?
In excel sheet I want to make that if there is a same value in a column, I want to dynamically change the color of the row that includes the same value.
The important point is that, i want to change the color of the only row based on other column cell value.
Ex:
No | Patch number | Patch version
1 123456 6
2 123456 7
In above example, I only want to change the color of row of number 1. The condition is based on Patch version .
Thank you!
For this example I entered the desired patch number in another sheet and named the cell 'PatchHighlight'
Then used this formula for conditional highlighting on rows 2 to 100
=$C2=PatchHighlight
The PatchHighlight cell could itself contain a formula, such as =MAX(C:C)
Ok, I think this does what you want. It can highlight any row where another row has the same value in A and a larger number in B. The formula to use is:
=COUNTIFS($A:$A,"="&$A2,$B:$B,">"&$B2)>0
If you stick this formula in C2 it will display TRUE or FALSE depending on whether other rows have the same value in A and a larger number in B or not. Then you could copy it down to all the other cells in C.
If you want to highlight rows using this you need to highlight row 2 and choose Conditional Formatting, choose New Rule, choose "Use a formula to determine which cells to format" and enter this formula along with the desired formatting. Then you need to choose Conditional Formatting, choose Manage Rules and enter this formula into the Applies To field:
=OFFSET($A$1,0,0,COUNTA($A:$A),3)
This will make the conditional formatting apply to columns A, B and C of every row of data you have. And if you add more data it will automatically highlight those rows too.
For more detailed instructions have a look at https://www.get-digital-help.com/2009/05/17/prevent-duplicates-using-dynamic-conditional-formatting-in-excel/ but use these formulas instead of the ones they suggest for finding duplicates.
I'm working on a conditional formatting issue. I would like the whole row to highlight if the text in the same row in columns B and C disagree. So far, I've been able to write conditional formatting rules that leave the cell un-touched if there is no data and if there is a data entry that disagrees with the text in Column B, but I can't seem to get the formula to apply to the full row.
Here is what I currently have:screenshot of the document with conditional formatting rules visible
I'm working on Excel 2010. Maybe there is a way to use a logic formula?
I look forward to hearing suggestions!
You can do this with a formula. Highlight the range you would like to format, create a new conditional format, select "Use a formula..." and enter the formula as it would apply to the first cell or in this case row.
In my case, I chose the first 6 rows: $1:$6 as my range. So in this case, I would enter the formula as if I were only entering it for my first cell. The formula =$B1<>$C1 will check for inequality between B1 and C1 in the first row, B2 and C2 in the second row, and so on.
I have a 1600-2000 rows of data in a spreadsheet that changes daily. I would like to highlight any row that contains such as 000000000000053851 in the R column. I had tried conditional formatting using this formula:
=OR($R1="000000000000549543",$R1="000000000000267294,$R1="000000000000053851")
but it seems to highlight a few rows that are blank in column R also.
Using the same numbers highlighted in column R, I would like to have an alternate number and possibly other data pasted into the corresponding row in column S. Each number has a unique alternate number and data to go along with it. This is how I picture a line may look with the highlighting and alternate data next to it:
I intend to record a macro using a few of the different steps that are likely required to do this. Any way, whether conditional formatting or an array formula, would be great to help with this.
For the sample provided, a CF rule of:
=LEFT(R1,12)="000000000000"
applied to ColumnR will format the sample and if you wish the cell immediately to the right. It will not highlight blank cells.
HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true:, enter formula from above and Format... with Fill red, OK, OK.
If you want the cell to the right to be formatted also, select ColumnsR:S instead of just ColumnR and change R1 in the formula to $R1.
For the cell to the right you provide few details but VLOOKUP in conjunction with a two-column table should suit. Column on the left being the ColumnR value, with the right-hand column for the same row the ColumnS value required. This table could be placed almost anywhere.
This could all be done with Record Macro.
I want to highlight cells in column A (using the conditional formatting tool) if the cell's corresponding row contains the letter z anywhere within that row. I want to do this so I can sort data to the top if it is highlighted in column A.
I'm using the formula:
=COUNTIF($A1:$AA1,"*z*")
But I don't want to highlight the entire row, just the corresponding cell in column A for that row.
What is the formula to do this?
Select ColumnA then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=COUNTIF($A1:$AA1,"*z*")>0
Format..., select highlighting OK, OK.
This will apply only to Column A (because of the selection).
This seemed to work for me when testing with a 3x3 cell table:
Highlight A1:A3
Conditional Formatting>New Rule>Use a formula to determine which cells to format
Formula:
=COUNTIF($B1:$C1,"z")
Then only cells in A were highlighted.
"I want to do this so I can sort data to the top if it is highlighted
in column A."
Ok, first of all, you don't need to use conditional formatting to sort. Second of all you wouldn't want to reference A1 in your formula =COUNTIF($A1:$AA1,"z") - it is a circular reference and any formula you put in column A would not return "z" anyways because you are using it for your COUNTIF formula.
The formula you want to use is:
=IF(COUNTIF($B1:$AA1,"z")>0,1,0)
If you want to look for any row that contains a z anywhere in a string you would want to do a wildcard countif:
=IF(COUNTIF($B1:$AA1,"*z")>0,1,0)
Then you can just sort on column A for all your data - high to low.
Basically you have demonstrated a basic misunderstanding of how to sort in excel(no offense). This should help you. Good Luck.