Problem:
Hello , as you can see in the image i want to Highlight Cells on the Column I when the cell value is less than 2. Everything works fine except those cells at the top that seem to be highlighted for no reason since they do not contain any data?. Any idea how to get rid of them??
Thank you very much for your help and time.
You can use a custom formula to do the conditional formatting (you may need to change the style dropdown to see the option to enter a formula):
=AND(I1<2,I1<>"")
If you apply this to cover your range it should work.
Related
I am sure this is really simple but cannot get it to work. I am trying to do some conditional formatting on a sheet that over time will have additional columns added to it. I want the formatting to be there before hand since the data is being added via VBA and the person using the spreadsheet are not Excel experts.
What I have is a column with numbers in. When a new column is entered I want to compare the value with the value in the previous column and then colour the cell accordingly. I can do this for a single cell with for example "=D2>C2".
I want to be able to write the rules in cell D2 comparing it with cell C2 and then have the rules apply across the area D2:DDD300. So for example cell N19 will compare itself to cell M19.
I thought I could use the "Applies to" box but that does not work. Any ideas on how I can achieve this?
Okay this now appears to be working. Not sure what I did differently but deleted all the rules and then set them up again. The only thing I did different was to initially do it for just the 1 cell, then expanded it out to the row when I knew it was working, then finally the whole area.
Sorry to have wasted peoples time
Your method should work. It does for me. Maybe this helps:
I have a table, that consists of 2 columns. I need to highlight values in first column, that are more or equal than 10% of the number in the second column.
I created additional row there, to clarify, but I can't use it in the formula, tho.
I need to use relative formula, since I am applying filter to these rows, so I need this all not to fall apart, if I am sorting table via filters.
I have looked through this topic: Excel Conditional Formatting based on Other Column , but I couldn't apply it. Or I failed at applying it.
I have tried to apply to the range (of =$A$2:$A$8)following formulas (in conditional formatting "Use a formula to determinate..."):
=$A2*100/$B2>=10
=ADRESS(ROW(),COLUMN())*100/ADRESS(ROW(),COLUMN()+1)>=10
But none of them did the trick. Can someone help me with this one, please? Thanks.
You misunderstand how conditional formatting works.
"I need to use relative formula ..."
No. You don't.
Conditional formatting, although I have never seen it stated anywhere, uses array-based formula. As such you describe the usage of the first instance in the (unfiltered) table, tell it the area of the table, and it will calculate the necessary relative addressing by itself. You do not tell it the relative addressing. Why it behaves like that, I can't tell you.
The formula will then maintain itself throughout any filtering or sorting you carry out. You do not need to account for filtering and sorting - provided, of course, you set everything up on the unfiltered table to begin with.
You can see from the attached screenshots, simply using your formula of =$A2*100/$B2>=10 and applying it to $A$2:$A$8 worked perfectly.
Okay so I have a sheet of over 500 entries. Essentially when the pulldown menu I have placed in cell J matches the value in A$528(Set to YES) then columns A-I all have a pattern applied to them in that specific row.
What it ideally each line should look like is this:
Applies to: =$A$524:$I$524
Formula: =$J$524=$A$528
The problem is that when I had to go in and format these lines with the painter, the line Formula: =$J$524=$A$528 is Formula: =$J$2=$A$528 in all cases. =$J$2 stays completely static, I need it to progress based on which row it is in. I would really rather not have to go in and manually input these 500 numbers if at all possible.
Thanks in advance for any insight.
The reason why it stays static is that you use the dollar sign. If you want it to progress based on which row it is in, then just omit the dollar sign before the row. (As far as I understand your problem)
I agree question is not crystal clear but I think what you want may be a Conditional Formatting formula rule of:
=$J1=$A$528
with Applies to of:
=$A$1:$I$524
or maybe as above but with $J2 for $J1 and $A$2 for $A$1.
The trigger value might be hardcoded with the formula =$J1="YES" instead and then no need for YES in $A$528.
I am using Excel2010 and I have the following Countifs statement, which works.
=COUNTIFS(Apr2014Fixed!$T:$T,"1",Apr2014Fixed!$Q:$Q,"*No*",Apr2014Fixed!$R:$R,"*Yes*")
I want to see which rows in my spreadsheet were counted, so that I can determine whether I've done everything right. I tried conditional formatting with the following formula, but I know I'm not using it properly.
=AND(COUNTIFS(Apr2014Fixed!$T:$T,"1",Apr2014Fixed!$Q:$Q,"*No*",Apr2014Fixed!$R:$R,"*Yes*")=3)
I don't understand what value I am looking to highlight. I thought =3 because I want all three conditions to be true for a case to be counted, but this didn't highlight anything. When I tried >3, it highlighted the entire spreadsheet.
Obviously, I have no idea how this works? Can anyone help, please?
To format rows across multiple columns, select the desired columns (in the screenshot I selected Q to T) and create a new conditional format with the formula
=AND($T1=1,ISNUMBER(FIND("No",$Q1)),ISNUMBER(FIND("Yes",$R1)))
I am using a Substitute Formula to replace a character '?' with '#'. But the formula isnt working as desired for the other rows when i drag the formula downwards.
The same output gets copied for others rows too. This happens even though the formula for other cells corresponds to its respective cells.
Please help!!!
Your formula is fine; it works correctly for me.
I can replicate your behaviour by setting the spreadsheet to manual calculation, so my thought is that yours is too.
You can check the setting from the Formula tab on the Ribbon. Click the Calculation Options item to see the current setting.
If it is manual, change to Automatic and your formulae should work as expected.