How to create Excel Conditional Formatting - excel

I normally have no issues creating simple conditional formatting formulas in Excel.
But the following formula works fine in a normal cell but not when used as a conditional formatting formula. What can be the problem?
=AND(INDIRECT(ADDRESS(ROW();COLUMN($B:$B)))="";INDIRECT(ADDRESS(ROW()-1;COLUMN($B:$B)))<>"")
Example:

The indirection seems unnecessary. Have you tried this?
=AND($B2="";$B1<>"")

Related

Why does my conditional formatting not working?

The conditional formatting is
and the worksheet looks like this
Formula for the AL / MC:
=IF(ISBLANK(F7),F8,IF(AND(NOT(ISBLANK(F8)),EXACT(F7,F8)),F7,CONCATENATE(F7,CHAR(10),F8)))
For the above image, I have done the conditional formatting on the worksheet so that different category is highlighted but for the one with AL/MC together is not following the conditional formatting, any idea why is it so?
I tried to redo the conditional formatting and search for solutions online but just cannot get the AL/MC to change accordingly.

Excel, complex conditional formatting

looking to have this result
have this data
need to configure the conditional formatting for this.
little confused as to how to write the formula
tried :
COUNTIF(Sheet2!$C$3:$C$5,$J6) +COUNTIF(Sheet2!$D$3:$D$5,">="&K$1) +COUNTIF(Sheet2!$E$3:$E$5,"<="&K$1)
Not sure if i understood your problem. Does this help?
The formula obviously needs to be in the conditional formatting formula, not some cell, I just put it in the screenshot to show the corresponding ranges of my example more clearly.
In this example the "applies to"-area begins with B2

Why does my Conditional Formatting fail when it works in Worksheet? Possible INDIRECT issue?

I am trying to do a comparison/Conditional Formatting between columns based on a drop-down choice. I have a formula that works fine in the spreadsheet, but does not seem to be working in my Conditional Formatting formula. Is INDIRECT causing my issue?
Formula is:
=IF(H1>100, IF((H1-INDIRECT(ADDRESS(ROW(H1), MATCH($H$4,$A$3:$I$3,0))))/((H1+INDIRECT(ADDRESS(ROW(H1), MATCH($H$4,$A$3:$I$3,0))))/2)>$J$2,TRUE,FALSE),FALSE)
Kind of hard to read, but the part that broke it is trying to grab my comparison cell using the following:
INDIRECT(ADDRESS(ROW(H1), MATCH($H$4,$A$3:$I$3,0)))
Where $H$4 is my drop-down value. So I am selecting the column that contains the data I want to compare to, then using address to select the current rows cell, then accessing it with INDIRECT.
If I replace the INDIRECT part with an actual cell, everything works as it should as well.
When I use the first formula, everything looks great if I input it into a cell on the worksheet, but I would rather not dirty it up if I don't have to. Is there a way to make this work?

Excel: Conditional formatting for subtotals

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

Can Excel Conditional Formatting use UDFs in the condition?

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).

Resources