Conditonal Formatting Multiple Rows - excel

This seems like a simple conditional formatting question and i hope it is for many.
I have two columns. Column 'I' with a reference value and column 'J' with a user value. I also have 4000 rows of data!
I would like to simply use conditional formatting in each row to identify if Column 'J' has a value equal too or less than column 'I'. If true, i want to highlight the cell in column 'J' green. If false, leave formatting as it is.
I have been chasing an answer on this for three hours and cannot find any resolution as you simply cannot copy and paste the formatting down the column in excel by dragging of similar. I can copy and paste formatting from one row to another but this is not a solution with 4000 rows. I have adjusted relative and absolute references.
Any links to supporting ways to do this would be great.
Here is a sample copy of the file with reduced data

Select J3 and go to Conditional Formatting, then select Format only cells that contain then select Cell Value and less than, then type =I3 (remove all $ as these are absolute cell references). This much it looks like you have already done.
Once you click OK you would then select your target rule and change the range of cells in Applies to. For instance, you would add =$J$3:$J$4000. Hope this helps.

Can you try this
=$I2
Here dolor sign has significant as you are checking value column wise means in a column top to bottom.

Related

Unique value in excel

I have an array of numbers in Excel spanning from Cells B1 to F49. Out of all those numbers I want to find out the unique values, in other words, no duplicates. I tried using Remove duplicates but it looks at the rows and not the individual cells. What would be my best option for doing this? any help would be greatly appreciated.
You could try this array formula that returns unique text or numbers from a rectangular range.
Select a range to output the results to eg: H1:H245
Copy and paste the formula below into the formula bar.
Press Ctrl+Shift+Enter to enter into the range.
=IFERROR(CELL("Contents",INDIRECT(T(IF(1,TEXT(MODE.MULT(IF(FREQUENCY(COUNTIF(B1:F49,"<="&B1:F49)+ISTEXT(B1:F49)*COUNT(B1:F49),COUNTIF(B1:F49,"<="&B1:F49)+ISTEXT(B1:F49)*COUNT(B1:F49))>={1,1},MODE.MULT(10^5*ROW(B1:F49)+COLUMN(B1:F49),10^5*ROW(B1:F49)+COLUMN(B1:F49)))),"r0c00000"))),0)),"")
I'd probably put this formula in column C: (or another empty column you have):
(so starting in cell C1: )
=COUNTIF(B:B,B1)=1
(and copy/paste the formula down)
It will return TRUE if it is unique. So you can then filter things out via Filter, or with other formulas down the road.
It may be easiest to just combine your information into one long column and run a remove duplicates. If this is not an option you may want to look at writing a macro to crawl through the records.
You could have a macro go through each column for the rows specified and determine if the CountIf function =COUNTIF(B2:F49,B2) returns a value >1
if it does there are at least 2 instances of this number.
I'm not sure how you want to identify your unique cells but you could potentially set a text color or return the values of the cell to another location.
Simplest for identification of values unique within the entire array may be to highlight the entire range with ‘standard’ formatting of choice for uniques, then select the entire range, Conditional Formatting, Highlight Cell Rules, Duplicate Values…, and choose a custom format of no fill and font of whatever you started with.

Highlight cells based on 10-15 values and post alternatives

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.

(Excel) Conditional Formatting based on Adjacent Cell Value

I'm trying to apply conditional formatting in Excel on a range of cells, based on the adjacent cell's value, to achieve something like this:
The goal is to highlight values in Column B (Actual Expense) red if the value is greater than it's adjacent value in column C (Expected Expense). I've followed a number of tutorials that said to apply conditional formatting by selecting Conditional Formatting>New Rules>Use a Formula to Determine Which Cells to Format then applying a rule =$B4>$C4 which would format the 'Actual' cell red if it were greater than the 'Expected' cell. This works great for one cell, but not so well when I attempt to apply this to a range of cells. I've used the format painter as well as editing the rule to be applied over a range of cells (i.e. $B$2:$B$5) as shown below but it only bases the formatting on the initial formula (if B4 is greater than C4) and everything undesirably turns red.
I'd rather not make individual rules for every row. Is there a way to consolidate this into one rule?
You need to take out the $ signs before the row numbers in the formula....and the row number used in the formula should correspond to the first row of data, so if you are applying this to the ("applies to") range $B$2:$B$5 it must be this formula
=$B2>$C2
by using that "relative" version rather than your "absolute" one Excel (implicitly) adjusts the formula for each row in the range, as if you were copying the formula down
I don't know if maybe it's a difference in Excel version but this question is 6 years old and the accepted answer didn't help me so this is what I figured out:
Under Conditional Formatting > Manage Rules:
Make a new rule with "Use a formula to determine which cells to format"
Make your rule, but put a dollar sign only in front of the letter: $A2<$B2
Under "Applies to", Manually select the second column (It would not work for me if I changed the value in the box, it just kept snapping back to what was already there), so it looks like $B$2:$B$100 (assuming you have 100 rows)
This worked for me in Excel 2016.

How to Conditional Format Full Rows

Is there a away to format rows of cells, so when data is entered in A1, the rest of row A turns red? The reds will disappear as each row cell is updated? Something like this works =IF(A2="","",B2=""), but it only flags reds as you type
"A" is not a row. It is a column.
Edit Perhaps this -- it took me a while to understand what you wrote, even though, in retrospect, it was pretty clear.
An entry in column A highlights the rest of the row (up to column V)
An entry in any other cell removes the highlight from that single cell:
Formula:
=AND($A1<>"",A1="")
As I understand you want to highlight the whole row if only column A contains a value. If any other cell contains a value, the highlight shall disappear.
Select the desired rows and create a conditional format with this formula:
=AND(LEN($A1)>0,COUNTA(1:1)=1)

How to determine current row?

I am using Conditional Formatting to try and change the colour of a cell in column A if the text in Column B is certain values. Currently my three formula's are this:
=$B$2="Low"
=$B$2="Good"
=$B$2="High"
I need a way to quickly push this to all 50 columns therefore I thought if I could change the formula to the following it would work I just don't know how:
=$B$ThisCellsRow()="Low"
=$B$ThisCellsRow()="Good"
=$B$ThisCellsRow()="High"
You're using absolute cell references (the $ in the address), which prevents Excel from adjusting the address as you add/remove rows and move the formula around. If you use $B2 instead, as you drag down the formula, Excel can adjust it to be $B3, $B4, $B5 and so on. With this format, the B column remains constant, and the row portion is flexible.

Resources