Whenever I auto-generate subtotals in Excel, only the "subtotal" label is added in bold, not the result. I'd like to have the complete "subtotal" row in bold.
I'd tried the tutorial here but for some reason I cannot get the formula to work at all, i.e. nothing happens. I tried some other formulas myself but not even the simplest ones are working.
What formula should I use in conditional formatting to get the complete subtotal row in bold whenever it's added? I'm using Excel 2010.
Use the USerDefined function isBold described here: http://www.excelforum.com/excel-programming/398006-checking-whether-a-field-is-bold.html and conditional formatting via formula.
Alright, it was a rather simple problem: I used a comma instead of semicolon to seperate the arguments in the formula (I know...). Sorry to have wasted your time on question: a good night of sleep is all that it took :P
Related
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.
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 question with regards to conditional formatting which I simply can't seem to solve.
The aim is to format the background color for the left-most cells that are blank up until a cell contains a value - and after this there should be no more formatting in this row. You can see an image of the result I'm hoping for beneath:
So far I've managed to create the conditional formatting of the blank rows, but sadly haven't managed to create the "single-cell" formatting (in yellow) conditional of the sum of all the first cells being = 0.
I've created a formula which actually succeeds in calculating the sum of the previous cells, but this formula includes INDIRECT() which it seems that conditional formatting doesn't allow. At least I'm getting an error starting with the follow (translating the error from Danish to English might not be intuitive):
You cannot use reference operators such as.....
The formula I'm trying is the following:
=AND(SUM(A2:INDIRECT(IF(COLUMN(A2)>=27;CHAR((64-26)+COLUMN(A2))&CHAR((64-26)+COLUMN(A2))&ROW(A2);CHAR((64)+COLUMN(A2))&ROW(A2))))>0;$K2>0)
Where $K2 is the sum of the row.
Is there a way to SUM a range of cells by doing something similar to this:
=SUM(B2:CHAR((64)+COLUMN())&ROW();"")) to dynamically SUM the range from B2 to the current cell? The problem in this case is whether the part CHAR((64)+COLUMN())&ROW();"") can be converted into a legible cell such as B4 to make it work inside the =SUM() formula?
Sadly the =ADDRESS() formula cannot be used (as far as I know) as this will trigger the same error in conditional formatting as well.
For now I would like this to work with the regular Excel conditional formatting, but if anyone have a simple VBA this would also have interest - however, I would by far prefer the regular solution.
The question:
Is there a way to create a formula that doesn't trigger this error - maybe by refrasing the formula or doing something completely else?
It seems to me that this could be handled with a much simpler CFR formula like,
=and(not(sum($a2:a2)), $k2)
Am I missing something?
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 have a cell in Excel that I want to format differently based on a user defined formula (UDF) - my formula tests whether there is a formula in the cell...
I am trying to use conditional formatting with my UDF to format the cell - but it does not seem to be working.
My condition is this:
="isManualPrice(R22C12)"
I tried without the quotes, but get the error
You cannot use references to other
worksheets or workbooks for
Conditional Formatting criteria
Perhaps the issue relates to my UDF being defined in a separate macro workbook and not my main workbook...
I see its mentioned in this blog entry from 2005, but only in passing...
Thanks in advance.
Chris
Yes, it can.
Your problem is simply that you've got quotes in there. You need to choose "Formula Is" from the drop-down, and then your formula should be
=isManualPrice(R22C12)
...with no quotes.
(I'm more used to A1 notation rather than R1C1 notation but I assume that'll work just as well).