I have a need to do some conditional formatting based off other cells.
Basically I need it to do:
If cell contains yes, use the formatting of cell A1
If cell contains no, use the formatting of cell B2
I managed to do this by adding a reference cell
=IF(SearchMultipleTbl($B21,E$20,Overview!$C$2:$XY$82)="Yes",VLOOKUP(E$20,Overview!$C$3:$E$961,3,FALSE)="On Hold",FALSE)
The SearchMultipleTbl looks for the answer, if it is yes it uses the Vlookup of a reference cell
I don't know exactly what you are looking for but this should help.
=IF(A2="yes","true","false")
If A2 is yes then use the first condition, otherwise the second.
Hope this helps.
Related
Is it possible to check if cell formula is a specific formula, and not just "isformula" ?
My example:
In cell A1 I have, normally, "=B2".
But during the use of this sheet the formula might be overwritten to "=D4".
How can I get a simple TRUE result if the formula in cell A1 is "=D4", and FALSE if it's something else ?
I get fix it with VBA but I prefer to use standard formulas first (if it's possible obviously).
Thanks for your time.
Using FORMULATEXT:
=FORMULATEXT(A1)="=D4"
So here is what I am looking for:
I want to highlight several cells, such as A1:A5 need to turn red based on a conditional format formula.
The conditional format for A1 would be:
=((A1/B1)<C1)
If true the cell turns red. Note C1.
The conditional format for A2 would be:
=((A2/B2)<C1%)
If true the cell turns red. Note it is still C1.
So here is the obvious question; how can I copy and paste this conditional formatting so that C1 does not change so that I can have only 1 rule vs 5?
I cannot cause a comment to solve the question. So, all credit goes to Scott Craner.
=((A2/B2)< C $1)
At the point in time i asked this, i did not know the function of $. Thank you!
I am formatting cell D25 using the following conditional formatting formula:
=(VLOOKUP($C25;$C$6:$L$18;2)+D25)>32
When applying the formula to the adjacent column I get formula updates to
=(VLOOKUP($C25;$C$6:$L$18;**2**)+E25)>32
Using the Copy and Paste Format function works mostly i.e. references in the formula are updated as I would expect.
The only (essential) thing that doesn't update is the INDEX value in the VLOOKUP formula. I would expect this value to increase by 1 when copying the format to the next column - it doesn't.
Is there any way to go around this issue with VLOOKUP? Is there a better suited formula to achieve the same result?
Any help will be greatly appreciated!!
This value does not increase automatically, and it is good. This formula was designed to be used on Tables, so consistency is a point here.
For conditional formatting, you may want to use $ to lock some references. For example, let we have the simple sheet as below:
First, select the range in the CORRECT order. This is important. the first cell you select will be reference for offsets of the conditional formatting. For this example, let's do it like this:
Now, let's go for the conditional formatting itself! Conditional Formatting > New Rule... > Use a formula to determine which cells to format. And let's put this formula:
=if($A1<=2;TRUE;FALSE)
Click OK and...
There we go! We just formatted the lines in witch An is equal or less than 2! Please note that we only had to lock the COLUMN of the reference. So, logically, to format the columns we would have locked the ROW.
Hope it helps!
EDIT:
If you REALLY want to use VLOOKUP, which I DO NOT recommend, you can just use the formula:
=(VLOOKUP($C25;$C$6:D$18;COLUMNS($C$6:D$18))+E25)>32
To change the index dinamically.
I am trying to use conditional formatting to highlight which of the cells in a row are today's date. I am using the formula:
=G2=(TODAY()) and the range is Sheet1!$G$2:$G$10.
However only the first cell in a column is highlighted even when the same date is listed below.
On a very similar formatting formula (=E2="High" on the range E2:E10) the formula seems to work a treat! I can't work out why there is a difference.
Thanks,
Alex
Please try:
=G2=TODAY()
(but only because one set of parentheses is not required!) and for Applies to:
=$G$2:$G$10
The Applies to range has to be in the same sheet as is G2 in your formula.
I suspect if you go back to the Conditional Formatting Rules Manager you will see that what you entered was automatially removed (substituted by =$G$2, hence the one cell that 'works').
My problem is similar to that in this quesion: Row in formula change based on value in another cell, i.e. I want to use the value of a cell as reference to another cell in a formula of yet another cell.
However, I want the value of a cell to only be the part of a cell range. Let me give you an example:
A1 holds worksheet-a
In C1 I'd like to have a forumla that results in =SUM('worksheet-a'!B:B)
Based on the other question, I thought that something like =SUM(INDIRECT(A1)&"!B:B") might do it. Sadly, it does not.
Do you have any ideas?
Thank you!
For me it works in this way
=SUM(INDIRECT(CONCATENATE(A1;"!B:B")))
or with ampersand
=SUM(INDIRECT(A1&"!B:B"))