I am trying to format my cells in Microsoft excel to highlight yellow if not equal to 2 different cells. The cell is referenced to either a Canadian dollar value or American dollar value (depending on if the user of the sheet chooses to view the sheet in USD or CAD), and I want to be able to format the cell that if someone were to go into the sheet and break the reference to either one of those cells, it shows up as highlighted yellow.
I know how to do this when it was only referencing one cell, but when I try to make it for both it doesn't work. I tried duplicating the rule but then it ends up always being highlighted yellow, because when it is equal to CAD, it doesn't equal the USD value, and vise versa.
If anyone has any suggestions it would be much appreciated.
Related
I was given a Project Management template that highlights the dates within a date range. The problem is that conditional formatting will highlight all the selected cells the same. My supervisor wants it to be a different color according to the person who is assigned the row. Currently, there are almost a hundred rows in this one sample with at least 10 people to be assigned. Here is a picture of the first portion of the sheet:
A1 to L13 of Excel spreadsheet
The conditional formatting is as follows:
=AND(NOT(ISBLANK($D7)),$D7<==F$5,$E7>==F$5)
and it is set to apply to
=$f$7:$BI$91
Right now, it uses blue to highlight every assigned set of cells in the F7 - B91 block. However, it is the same color whether the row is assigned to Bob or Cal or Dave . . .
I know I will have to create a set of "keys" to assign the color to a name so that it will use blue for Bob, red for Cal, green for Dave, etc. However, I don't know how to get it to do that for all cells in a row that match the person's name. I could make 10 IF rules for each row . . . but I know there is a better way.
Note: I need to do this without using VBA.
I have two columns. 1st column is an expected completion date (ECD). 2nd column is a actual completion date (ACD), which starts out blank. I want the ECD to turn red if its date is in the past...easy. I want the ECD to turn back to white if there is an ACD filled in.
To me the formula would be: =AND(A3:A5 < TODAY(), B3:B5 IS NOT BLANK) But that formula is not allowed.
Can someone please help?
When you setup conditional formatting you have to be very careful about how you specify things. When setting up your formulas you only reference the 1st row of your AppliesTo range, excel will adjust the references as it moves down the range. Of course this will be different if you are referencing cells that are not in your first row. If referencing constants remember to use the $ for the rows/columns that don't change.
In this specific case the formula you want is: =AND(A3<(TODAY()),B3=0,A3<>0)
I have 2 cells on one sheet in excel that pull in external data. The higher value is in the top cell and the lower value in the lower cell. I want to highlight both cells if a third value on another sheet is greater than the high value or lower than the lower value on the first page.
I have tried using conditional formatting by selecting both cells and making 2 different rules for those 2 cells but it doesn't seem to work. I have tried using the OR function and only making one rule but that hasn't worked either.
Any ideas on the best way to do this? I want both cells to be highlighted.
Thanks.
Conditional formatting is working fine on my test file :
thanks in advance for the help.
I'm making a Gantt chart in Excel and am trying to integrate the capability to highlight the work week (WW). The idea is that one can select the WW from a drop down menu and the corresponding columns in the chart are highlighted. I am struggling with the conditional formatting formula to highlight the desired dates.
Here's a screen shot of how the chart is set up
I am able to highlight the column of the cell containing the WW value (e.g. in picture column I is highlighted as it contains "WW42" in cell I3. I would like to be able to highlight the days from Sunday to Saturday of each WW.
Most formulas (that I know) work on the value of the cells rather than their location or index. I have tried simply filling in all the blank cells with the WW value and then hiding the value, but the formatting isn't aesthetically pleasing and it's not efficient.
I have also tried merging the WW cells, but am unable to select all columns of the length of the merged cell, just the first column associated. For example, if I merged I3 to O3, conditional formatting will highlight that merged cell and only column I.
Any suggestions on how to approach this is greatly appreciated!
Attached is a screenshot of my structure with my conditional formating working as required. You'll need to adjust acording to your structure, but I used a formula-based conditional formating, with the rule:
=COUNTA($B$2:B$2)=$A$1 //Where A1 contains the workweek I want to highlight
Entered into cells $B$3:$V$6. Of course, in your case you'd have to change it to something like:
=COUNTA($B$2:B$2)+41-3=$A$1
Since your work weeks start at 42 and you have 3 extra headings you dont want added on your sum (ACTUAL START, ACTUAL DURATION and PERCENT COMPLETE). Also the header for the work week has to be a numeric value, but you can play around this to get what you need. Let me know if you'd need further help.
You do not need to use the third row for your conditional formatting, if row 4 has legal excel dates. The WEEKNUM() formula gives you exactly what you need.
If your Dropdown Menu is in cell B2 and consists of numbers from 1-52 then this should work for your conditional formatting:
=$B$2=WEEKNUM(D$1)
See attached photo.
I'm trying to apply conditional formatting in Excel on a range of cells, based on the adjacent cell's value, to achieve something like this:
The goal is to highlight values in Column B (Actual Expense) red if the value is greater than it's adjacent value in column C (Expected Expense). I've followed a number of tutorials that said to apply conditional formatting by selecting Conditional Formatting>New Rules>Use a Formula to Determine Which Cells to Format then applying a rule =$B4>$C4 which would format the 'Actual' cell red if it were greater than the 'Expected' cell. This works great for one cell, but not so well when I attempt to apply this to a range of cells. I've used the format painter as well as editing the rule to be applied over a range of cells (i.e. $B$2:$B$5) as shown below but it only bases the formatting on the initial formula (if B4 is greater than C4) and everything undesirably turns red.
I'd rather not make individual rules for every row. Is there a way to consolidate this into one rule?
You need to take out the $ signs before the row numbers in the formula....and the row number used in the formula should correspond to the first row of data, so if you are applying this to the ("applies to") range $B$2:$B$5 it must be this formula
=$B2>$C2
by using that "relative" version rather than your "absolute" one Excel (implicitly) adjusts the formula for each row in the range, as if you were copying the formula down
I don't know if maybe it's a difference in Excel version but this question is 6 years old and the accepted answer didn't help me so this is what I figured out:
Under Conditional Formatting > Manage Rules:
Make a new rule with "Use a formula to determine which cells to format"
Make your rule, but put a dollar sign only in front of the letter: $A2<$B2
Under "Applies to", Manually select the second column (It would not work for me if I changed the value in the box, it just kept snapping back to what was already there), so it looks like $B$2:$B$100 (assuming you have 100 rows)
This worked for me in Excel 2016.