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.
Related
I have a calendar in Excel I am doing some Conditional formatting on, I am supposed to insert letters and each letter must then format both the cell and the cell on the right in a color. It is no problem to format the cell the letter is in, it can be done in several ways as example =I10="P" But how do I get the cell on the right to follow.
When you create your rule you must put dollar signs (ex : $H$13) on the letter and number of column and row, that way the conditional formatting will only check the initial cell and the other cell on the right won't have to respect the condition. However don't forget to apply your formatting on the right cell otherwise it won't work.
You'll find a link with an image of an example. My excel is in french but you should understand quickly.
https://imgur.com/a/KEMRmFq
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 want to take a cell and format it based on the value of another cell. For example
I want to from A23 based on the value of C23 but when I select A23 and ass this formula it only formats D23. Also is there a way to duplicated this easily for 29 other rows? A22/D22 for example.
="D23<1%"
Select all of the cells you want to apply the conditional formatting rule to with the cell in the top-left as the active cell. Note the row of this cell. For the sake of argument, I'll say this is row 22.
Clear out the previous attempts at a conditional formatting rule and start a new one. Choose Use a formula to determine which cells to format then supply the following in the Format values where this formula is true: text box.
=$D22<0.01
Note that I've used row 22 in this formula. That should be changed to whatever row your block of cells to receive the CF rule starts with.
Click Format and select some formatting. Click OK to confirm the formatting choices and then OK again to create the new rule.
I am trying to implement the following logic but my formulas are not encompassing all possibilities.
Am I able to accomplish the following using the approach outlined below?
C5 has a start date(yy/mm/dd), 2013-10-01.
D5 has an end date(yy/mm/dd),2013-10-23.
F3->CX2 has 7 cells merged with the monday's date in the cell.
Example: F3: 30-Sep-13, M3: 07-Oct-13, T3: 14-Oct-13.
F4->CX4 and below are the unmerged seven cells, therefore you have seven cells below each week cell.
My goal is to use Conditional Formatting when cell has value TRUE to fill the background colour of each individual cell between the start and the end date. However I am having trouble determining the correct formula. I have tried the following in F4 and across and below but none have proven to work for all scenario's:
F4=AND(C5=F3, D5>=F3) F5=AND(C5=(F3+1), D5>=(F3+1))...
only fills the cell for the start date not all the cells between the start and end date.
In short, I need to identify the start cell and fill it, continue filling all cells until the end date.
Should this be a macro with a while loop?
***I Believe I have solved my question with the following formula:
=IF(AND((F3)>=$C$5,(F3)<=$D$5),TRUE,FALSE), =IF(AND((F3+1)>=$C$5,(F3+1)<=$D$5),TRUE,FALSE), =IF(AND((F3+2)>=$C$5,(F3+2)<=$D$5),TRUE,FALSE)...Then after 7 cells it becomes: =IF(AND((M3+1)>=$C$5,(M3+1)<=$D$5),TRUE,FALSE), =IF(AND((M3+1)>=$C$5,(M3+1)<=$D$5),TRUE,FALSE)
Should this be a macro with a while loop?
It seems it does not have to be, though that depends upon my interpretation of your question, which seems odd if only because the conditions are not in the rows for which they trigger the formatting.
Select the applicable range starting in F4 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($F$3+COLUMN()-6>=$C5,$F$3+COLUMN()-6<=$D5)
Format..., select choice of formatting, OK, OK.
Here's a stepwise view on the problem as I see it:
Set up your data and include the actual date of your "weekly view" as part of the sheet:
Add conditional formatting to a single cell (say, Monday of Week 1) that applies to "a formula to determine which cells to format":
Copy-and-Paste-formats to the remainder of the cells:
The result should resemble:
Change the actual cell formatting to "" to remove the date from view:
The removes the capability to insert any content in the cells (but that wasn't part of the question). If you want to insert content and maintain colouring, you can base the conditional formatting on a similar-sized/shaped layout elsewhere in the sheet and format it accordingly. For example, the following layout provides this yet allows you to enter content in the conditionally formatted area:
Use the formula conditions. I put a start date in A1, and an end date in A2. Modify as needed per your requirements.
Then I will apply conditional formatting to values in range E1:E6. Again, modify as per your requirements.
Then simply use Highlight cells Rules > Between
Then, select your start/end values and press OK. Voila!
I'm trying to do some conditional formatting in Excel 2003, what I want to do is have a cell go red if the next cell is "Yes" and go bold if it, itself, contains "Yes". So if both cells are "Yes" the current cell will be red and bold. I want to do this for a group of cells so I haven't used a direct reference to the cell, but I have come up with the following.
=AND(INDIRECT(ADDRESS(ROW(),COLUMN()))="Yes",INDIRECT(ADDRESS(ROW(),COLUMN()+1))="Yes")
But this always fails. However, if I use either on its own (INDIRECT(ADDRESS(ROW(),COLUMN()))="Yes" to make the current sell go bold), it works.
Does anyone know how I can self reference a cell generically in excel 2003 conditional formatting?
I don't have Excel 2003 to test on, only 2007. However, I think you can solve your problem with the following rules. Assume that your first column is A and the second is B with the first data value in A1.
First rule on A1 is highlight using a formula of =and(A1="Yes",B1="Yes") and the format is bold text and red background.
Second rule on A1 is highlight using a formula of =B1="Yes" and the format is red background only.
Third rule on A1 is highlight when cell equals "Yes" and the format is bold text only.
Then copy this format to all the other cells in column A with the format painter. Excel will automatically adjust the cell references for you so that in A2 the formula refers to B2, in A3 it will refer to B3, etc. Note that the order of the rules is important because Excel 2003 will stop after the first rule that matches. That's why you can't get the behaviour you want with only two rules.
You can also copy the same format to column B, assuming that's what you want. Otherwise, format B1 with the rule to bold when cell equals "Yes" and copy that to the rest of column B.