I've been trying to create a conditional formatting based on calculation of 2 cell.
The logic is, if the current month increases/decreases more than x or -x from previous month, then it will highlight or change or even better if I can use icon to show it.
So for example, for the month of march, since it decreases more than 2pts, than the cell should turn red. And for the month of Feb, since it increases by 2pts, then the cell should turn green.
Is there any way to do this? and Copy Paste this through the table?
you could use the following formulas for conditional formatting starting in feb:
=(b2-a2)>2 set the format to fill in green
=(b2-a2)<2 set the format to fill in red
and then use format painter to copy that formatting for the other cells.
Related
I am trying to right rules for a spread sheet containing the NFL season. I have it set up so that I have a week in one column. At the bottom I have a cell for selecting the one team I am picking that week. When that cell is empty, I want nothing to happen to weeks 2-17. When I put a team name in that cell, I want that team name to change color with a line through it for weeks 2-17.
So far I can make the rule for the last part but when I leave the cell blank, week 2-17 all change color with a line through it. I can't figure out how to get the blank cell to trigger no action
Any time I tried formulas with =ISBLANK($B$50) in it I was unable to trigger the rule as nothing I added to it from what I seen from googling/youtubing it worked. The only conditional format I have that works is Format only cells that contain =$B$50 which applies to =$C$2:$R$48
Keep in mind I am slightly above beginner with excel formulas/rules
If the cells change their format to something with a line through it, this is either a conditional format or the regular format of the cells. In either case, remove that format.
Then select the cells that you want to format and create a new conditional format with a rule that uses a formula. In the animated screenshot I am formatting the cells from D3 to F7. Select D3 to F7 and make sure D3 is the active cell. Then use the formula
=D3=$B$7
and set a format. Note how the reference to the cell to format does not have $ signs, but the cell where the comparison value is entered DOES have $signs.
If the cell B7 is blank, no conditional format will be applied, just the regular cell format will show.
Here is a screenshot of the Conditional Formatting Rules Manager.
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 am creating a spread sheet that should automatically highlight cell in as color green.
As you can see in the attached, the cell to be automatically shaded green should represent the week in that month when a child should turn 1 year.
I don't know if its just formula in Excel or writing some macro to do this whenever a new entry is done.
This can be done with conditional formatting. Highlight the range under the header row and right of the the dates.
Assuming your data starts with the first date in A2, and first week number in C1...Then go to Conditional Formatting, and add this under a custom rule =weeknum($A2)=C$1. Then choose green for the fill, and apply!
Or change it to =weeknum($B2)=C$1 if you want to base the weeks off the 1 year mark.
I have a table with a round 500 rows of data. I want to setup conditional formatting to highlight rows based upon how old a row is (based upon the date cell in that row). The idea is that as an entry get's older, it is entered with a white background, but as it ages, it turns a darker shade of red. We have data taken from 5 separate weeks and plan to add more. Is this POSSIBLE in Excel, or will I need to highlight each week manually?
If you are willing to have one column be highlighted, as opposed to the entire row, this example should help.
Steps to reproduce:
Highlight the column with the dates
In the Conditional Formatting menu (Under the Home Tab on the Ribbon - Office 2013)
New Rule
Format All Cells based on their values.
Choose the darkest color for the Lowest Value
Choose the lightest color for the Highest Value
OK
Note in the example below how the scale of the colors changes based on the range. When the lowest date is 2001, that receives the darkest red, but when a date from 1980 is entered, the dates from 2001 and up are considered to be in the lighter third.
The formatting applies to the entire column, so you can add as many dates as you need.
Here are some very useful tips demonstrating a number of uses for conditional formatting:
Excel formulas for conditional formatting based on another cell value
How to conditionally format dates and time in Excel - built-in rules and formulas
I have a column with conditional formatting rules set to make the background one of three colors based on how close the date is in comparison to the current date (Today's date + 7, + 15, +30 days).
I want to extended the conditional format across to effect the entire row, rather than just the individual cell for the user more easily to see which item's date is approaching.
Is it possible to do a conditional format using a cell's format?
Update: To explain it further. Conditional format is set to a column: if a cell value is in between today's date and 7 days from today's date, it is formatted to have a green background. I want this format to extend across the ROW in which the value turns green.
Please try:
where the three formulae are:
Green =$A1<TODAY()+7
Orange =$A1<TODAY()+15
Yellow =$A1<TODAY()+30
and I have assumed each 'row' spans A:Z and your dates are in ColumnA.
This will highlight dates earlier than today also (though could easily be adjusted).
Just change the Applies to range to all the columns you want to be colored. You'll need to make sure you lock down the reference of the date column in the Conditional Formatting rule.
For example:
If your data is in columns A:H, then your Applies to range will be =$A:$H
If your date column is column C, then your conditional formatting rule (for C1) would be something like:
=AND($C1>=TODAY(),$C1<=TODAY()+7)