Conditional Formatting with 2 formulas - excel

I'm trying to conditional format a cell.
I have an amount in C3 (32,123.45). I have a total formula in column K (column K is totaling C9, E9, I9, J9 etc). There is a formula that is C3-K9-K13-K17-K23. The result should be $51, 123.45. Since the formatting is Accounting, it is showing ($17,123.45) instead of the $51,123.45.
I would like to use the conditional formatting so that if the result of the range (C3-K9-K13-K17-K23) is higher than C3, then it should format red. I'm having trouble with this as I'm not that good with excel. This seems to be an easy fix. Just can't find it.

With C3 Selected go to Conditional Formatting > New rule > Use a formula to determine which cells to format and enter this formula.
=SUM($C$3,$K$9,$K$13,$K$17,$K$23)>$C$3
Click "format..." and pick how you want the cell to look when it is higher than the range.
As an aside, your formatting won't change your value. Your calculation is $68,246.90 too low.

Related

How to refer to a current cell in a range when using conditional rules?

I have a column of cells range(A2:A10) containing a date for the first day of each week.
I want the cell color to change when the date is in the past.
When I select the cells I can apply a conditional rule but I can't figure out how to write the formula so it applies to each individual cell.
For example:
formula
=A2>TODAY()
works
However that rule will apply to the whole range returning the result for whether the date value in A2 is in the past.
I want the formula so that the value in A3 is the deciding factor for cell A3, A4 is the deciding factor for A4 etc..
The best way I can explain it would be using "this" in coding when writing the formula.
Select cells you want formatting in. For example A2:A10. When creating rule choose "Format only cells that contains" and in "Format only cells with:" choose "less than" and write =TODAY() formula:
Result:
Keep in mind that date format may be different due to settings.
Also tested your formula and it works fine:

Conditional formatting many cells by individual formulae

I want to apply a conditional formatting (CF) rule to a group of cells to individually colour them if their individual cell values are greater than a threshold (in this case >=5). To illustrate:
The top row shows how I want the bottom row to look. For the bottom row I cannot figure out how correctly format according to cell-specific formulae.
The problem is identifying a way to specify cell-specific CF formulas in a single operation for a group of cells - as you can by pasting/dragging normal cell formulas. I obviously don't want to have to manually specify the formula for each cell!
Grateful for assistance.
Select the rows or columns or range that you want to conditional format,
Enter the below formula in the formula bar in conditional format and choose a fill color,
=AND(A1>=5,ISNUMBER(A1))
If you are starting in row3, change the A1 to A3. The $ that you have in the formula makes it absolute. It should be relative.
You just select all required cells to format. Then go to conditional formatting.
Check what is the cell shown just before the formula bar (the single cell that represents the selected range, also called default cell) and use that cell in your formula without absolute reference. like B3>=5 or R3>=5

Conditional Formatting with Formula using Relative References

I looked around for an answer to this and found a similar thread, but it did not quite answer my question so here goes.
I have two columns, each with 262,000 rows of data. I am trying to highlight data in one of the columns based off of two conditions. I think I have the formula right for the conditional formatting, but the problem is that it will not apply to the entire column as I want it to. For example:
=AND(K6<=1638, L6=0)
That's the formula I have. I want that formatting to copy and paste all the way down column K, iterating each time. For example, the cell below should have formatting that says the following: =AND(K7=1638, L7=0) but I cannot get it to this. It just keeps looking at the values in cells K6 and L6.
Is format painter not the way to get this formatting applied to each cell?
Have you tried using conditional formatting as below?
I simplified the formula in the example but should work for your case as well.
It seems to me more practical for large ranges than Format Painter.
The formula =A2 > 4 has the cell A2 hardcoded, yet it magically works when applied to cells A6, A7, etc.. Excel uses this formula in relation to the first cell in the range, so if you wanted to highlight cells in column A that are greater than column B, and your range started in A2, your formula would be = A2 > B2.
I suggest select Column K and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(K1<=1638,L1=0)
Format..., select choice of formatting OK, OK.
When the rule is shown in the Conditional Formatting Rules Manager it is as applicable to the top left hand cell of the Applies to range. CF in effect raters through the range adjusting cell references automatically just as they adapt elsewhere (ie when going down Column K, K1 scrolls forward to K2 etc, whereas K$1 would stay as K$1).
You can do the conditional formatting you need by utilising OFFSET() and ROW() functions, so that your
=AND(K6<=1638, L6=0)
becomes something like:
=AND(OFFSET(K6,ROW()-6,0)<=1638, OFFSET(L6,ROW()-6,0)=0)
replace -6 with the row offset value you need.
So, for example, if you enter this formula into some cell in row 6, it will look into K6 and L6 respectively because ROW()-6 evaluates to 0 – so no offset is applied.
Then in row 7 the SAME formula will look into K7 and L7 because ROW()-6 evaluates to 1 which means offset one row below K6 and L6.

Excel 2011 copy formula/rule headache

I'm trying to set up a formula or rule (don't know which is the best to do this) on excel 2011. So for cell A1, I want to type in a value. I want cell B1 to show it in green if the value is more than A1 or red if it's less. 1) I also want to copy this formula or rule down column B so that it will change according to the value in column A (A1:B1, A2:B2, A3:B3, etc). If possible, I also want to copy this formula or rule to columns C, D & E so that if the value in cell C1 is greater than the value in B1, it will turn green and red if it's less, etc.
Thank you in advance.
What you need is Conditional formatting.
Steps to perform:
Click a cell
Go to menu: Format -> Conditional Formatting,
Choose formula based formatting.
Edit based on your formula
You can use the copy formatting icon to copy this conditional formatting to the whole column

How to do conditional formatting regarding dates in excel

I have a table:
I want cells which top cell (B1, C1) is older than corresponding date value (column D) to be filled with red, as shown below:
Here C3 needn't be red because 15 Feb is in February.
How can I do this with conditional formatting?
Use Conditional Formatting, Use a formula to determine... and enter the formula
=DATE(YEAR($D2),MONTH($D2),1)>DATE(YEAR(B$1),MONTH(B$1),1)
(or the shorter =EOMONTH(B$1,0)<EOMONTH($D2,0) as suggested by pnuts),
and Applies to
=$B$2:$C$4
The formula gets rid of the day in each of the two cells to be compared, keeping only the months/years. It also uses suitable relative/absolute indexing for the matrix.
I have used both, each with different formatting, to test them at once.
Use Conditional Formatting.
Use a formula to determine.
Enter the formula
=DATE(YEAR($D2),MONTH($D2),1)>DATE(YEAR(B$1),MONTH(B$1),1)

Resources