I've looked at all the tutorials on how to do this but just cant get it to work, I want to highlight the cell in column A if greater than or equal to the adjacent cell in column B, and repeat this all the way down, the formula I have is:
=A2>=B2 Applies to: =$A:$A
It seems to highlight the cells randomly and incorrectly.
Related
I'm trying to use conditional formatting to highlight the lowest value in each row green as long as the unmerged cell above it does not read "N" (as I want that to disqualify the value in that case.) If the lowest value has the "N" (for No) above, I need to have the next lowest value highlighted green that doesn't have "N" listed. I have conditional formatting to highlight a value red if "N" is selected/entered. In my screenshot, the value in cell F11 is the lowest, but because it has an "N" above, the value in cell D11 should highlight green (with F11 staying red- If I change that N to Y, the cell turns green.)
Each item's "row" is made of two rows. On the upper row, the cells are unmerged. On the lower row, both cells are merged. The range of columns that I want to evaluate is D:CY (with CX being the last for the lower row since it has merged cells.)
Here is where I'm at with the custom formula:
=D11=IF(E10="N",SMALL($D11:$CX11,2),MIN($D11:$CX11))
I will be using this on versions as old as Excel 2013, in case that affects code support. I want to apply this to a range or rows below so I'm not sure if I've got my absolute $ addressing correct. The columns won't change except that E10 since I'd then want it to move down the row...
Perhaps a formula like this for your conditional formatting, based on COUNTIFS with staggered ranges to identify the lowest cell with a Y one row above and one column to the right:
=AND(D11<>"",E10<>"N",COUNTIFS($D11:$H11,"<"&D11,$E10:$I10,"Y")=0)
Change the H to CX and the I to CY to apply to your range.
I have a spreadsheet that has a 7000 rows. My sheet does have a header row. Column G is not supposed to have any cell with a value greater then 1000. I want to highlight red the cells with these "bad values". This I accomplished with the conditional formatting cell value greater then 1000 and applied it to G2:G10000. even though I would love to apply this G:G, so that I don't limit this to just 10,000 rows (there may be rows ith future then the current 7,000).
My bigger issue is that to highlight that column G has a "bad" cell(s) I would lime to highlight all of column G.
I tried using a conditional formatting formula = $G2>1000 and applied it to G:G it only highlighted the cell. I tried = $A2>1000 and applied it to G:G, It highlighted the entire column always even when the condition wasn't met.
What do I do?
You can accomplish this with a COUNTIF formula. I mis-read and did this for a value greater than or equal 10,000. Take out one of my ZEROs in the equation!
As the solution stands, if any cell in column G exceeds (or equals) 10,000, the entire column will highlight.
I have a list of dates in column C.
I have a single date in cell J1.
I want to conditional highlight all the cells in column C that have the same value as cell J1. I also want the opposite: to highlight cell J1 if its value is found anywhere in column C; that way all of the duplicates will be highlighted at the same time.
I have tried with =MATCH(C:C,$J1,0)>0, =COUNTIF(C:C,$J1)>1, =C:C=$J1, and tons of others, but none seems to work. Any ideas?
Custom Formula:
=C1=$J$1
Apply to:
C:C
Custom Formula:
=MATCH(J1,C:C,0)
Apply to:
J1
I have a range of reference locations on Sheet 2, column A. I have a list of locations on Sheet 1, column F. I can get the cells in Column F to highlight if they match one of the reference locations with this formula in conditional formatting: =COUNTIF(Sheet2!A:A,F4:F2500).
What I want to do is, instead of highlighting the cell that shows the location in column F, I want to highlight the adjacent cell in column G.
I've found ways to do what I already have working and I have found ways to highlight a cell based on another cell's value, but I can't figure out how to connect the two.
You can actually use the exact same formula, just apply it to the cell next to it.
I changed the formula a little, but if you create a new conditional format in G1 and use this formula: =COUNTIF(Sheet2!A:A,F1) it will compare the value in F1 to the options in Sheet2 column A and if it finds it, it will apply the format to G1. Then apply the formula to the other cells in Sheet1 column G as needed.
Hopefully this will stop the chain.
See the linked questions if you want more background, but I need to conditional format multiple rows (2,000+) from the FIRST (leftmost) non-blank cell + the next 11 columns after it. Not sure if it's needed for the conditional format formula, but I am able to get the start cell for each row, can kind of get the end cell (see below).
Cell address of the first populated cell in the row (*the data starts on row 2, the values begin in column C and end in column P):
{=(ADDRESS(2,COLUMN(INDEX(C2:P2,MATCH(1,IF(C2:P2<>0,IF(C2:P2<>"",1)),0)))))}
^ this gets me an absoluted text-version of the leftmost populated cell in each row. I have all these addresses in a helper column. I am then able to get the desired stopping-point for the format (12th cell to the right of the cell returned from above formula), but I have to manually enter the cell address derived from above formula:
=ADDRESS(2,COLUMN(OFFSET(N2,0,11,1,1)))
I can't nest the start cell formula inside this second formula or it breaks.
THANK YOU!
Desired result (ignore the different colors, they can be the same):
I added a helper column C that finds the first non blank in the row (my data went from column D to column AZ)
=MATCH(TRUE,INDEX((D2:AZ2<>0),0),0)
My conditional format rule applied to D2 to AZ4 was to highlight when the following was true:
==AND(COLUMN(D2)<($C2+11+COLUMN($D2)),COLUMN(D2)>=$C2+COLUMN($C2))
You can modify this to put the helper column where you wish, and to use named ranges.
(Had to add condition to not start coloring before the first instance!)