Conditional Formatting based on TWO Adjacent Cell Value - excel

The goal is to highlight value in Column A5 Green, if the values in both B5 and C5 have the value "Confirmed" then also have the same mythology for A6 - A19
I tried using if statements, but it was not working

Use AND:
=AND(B5="Confirmed",C5="Confirmed")
and apply this rule to range A5:A19.

Related

Conditional Formatting in Excel Based on Drop Down Value

Need solution: (Unable to find in group based on below example)
Format cell color based on drop down.
Example
If A1 Drop down value 'Shirt' then color A2, A5 and A6 as yellow.
If A1 Drop down value 'Tie' then color A3, A7 and A9 as green.
User has to fill the highlighted columns if they select the value as Shirt or Tie.
Two rules with formula:
First:
Applies To: =$A$2,$A$5:$A$6
Formula: =$A$1="Shirt"
Second:
Applies To: =$A$3,$A$7,$A$9
Formula: =$A$1="Tie"

Conditionally Formatting a cell, based on cells including formulas

I'm trying to highlight a cell A6, if B6 + C6 >74.9%. However, B6 and C6 are calculated values and conditional formatting reads the formula in the cell, not the value it calculates
I can create an if statement with a 1 or a 0:
=if((B6+C6) > 0.749, 1,0)
but if I use the same if statement in the conditional formatting (with out the ,1,0) nothing happens:
=if(b6+C6) > 0.749
I want the cell to turn green, rather than a 1 or a 0.
The syntax of the formula you're using is wrong. In the conditional format formula you don't need an IF statement at all, you can just write out the condition, which evaluates to either TRUE or FALSE.
In this case it's
=B6+C6>0.749
For completion's sake: if you wanted to write a full IF statement, then it would have to look like
=if(B6+C6>0.749,true, false)

How to conditional format with dynamic references

I want to highlight all the cells containing a formula error or formulas
followed the below steps
Did a CTRL+A and selected all the cells
Home > Conditional Formatting > Use a formula to determine which cells to format
Applied the formula =OR(ISERROR(A1),ISFORMULA(A1))
Selected a fill colour and clicked on ok
Expectation: All the cells which is having a formula or error value like #N/A need to be selected.
Please let me know what i am doing wrong here
Formulas in conditional formatting work with reference to the active cell in the selection. In the example given below I have selected B2 to E6 with the active cell as C3 and then applied the conditional formatting.
In the example above in the selection B1 to E6 the active cell is C3. Now when you use =ISERROR(D4), it is effectively applying it to R[-1]C[-1] because you are checking the value in D4 according to the formula and applying it on the selected cell i.e. C3 as you can see in the image.
Thus if you now put #N/A in Cell D4, Cell C3 will become Orange
If instead the active cell in the selection was D4 instead of C3 then the conditional formatting would highlight all #N/A
If you want to understand clearly, try =ISERROR($D$4) and put a #N/A in D4, that will highlight all the cells B2:E6.
Else you can also go to
File>Options>Formulas and check R1C1 reference style

How to Convert an Match and Index Function to a VBA tailor-made function in Excel?

I need a little help here.
I always use the match and index functions in excel just like an example below:
Table "DataRange" is the range of the data, i.e. D8:G12
Cell A3 and Cell B3 are the headers;
Cell A4 and Cell A5 are the "match and index" keys;
And Cell B4 and Cell B5 are the results.
For example, if I change the Cell B3 from "Shop_Name" to "Status", the values of Cell B4 and Cells B5 will be "Same" and "New" respectively.
I would like to ask anyone can convert this fomula to a tailor-madeVBA function? Then I can shorter my formula like "=matchindex(DataRange,$A4,B$3)" and generate the same result "Shop_B"
Example

Excel: compare and format cells

I have 2 columns with different values.
What I wish to accomplish is this:
1. if value of any cell in A is not in any cell of B > make cell blue
2. if value of any cell in B is not in any cell of A > make cell yellow
3. if value of any cell in A is also in any cell of B > make cell green
A2 found in B2, make A2 & B2 both green
A3 nowhere in B, make A3 blue
A4 found in B3, make both green
B8 nowhere in A, make B8 yellow
A8 nowhere in B, make A8 blue
I hope this makes sense and is possible with conditional formatting. I couldn't figure out the formula to use for this. Any help would be much appreciated.
Please select A2:A8, HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format, Format values where this formula is true:
=MATCH($A2,$B$1:$B$10,0)
with green formatting and another rule:
=ISERROR(MATCH($A2,$B$1:$B$10,0))
with blue formatting.
Select B2:B8 and repeat the above with:
green: =MATCH($B2,$A$1:$A$10,0) and yellow: =ISERROR(MATCH($B2,$A$1:$A$10,0)).

Resources