Conditionally Formatting A School Markbook Using VLOOKUP - excel

I'm looking for a faster way to format my Excel spreadsheet. I have a large spreadsheet with 200 students' test and homework data on it. I need the cells in the sheet to individually colour code their efforts (red, yellow, green) depending on if they hit their target grade. I currently use three rules and copy those rules for every child with the same target grade. It takes ages and if a child's target changes, I have to faff with the formatting too. I need all the cells from H5:AM27 to format in reference to the score in column F. If they are on or above it, green. 3 marks or less below it, yellow, more than 3 marks below, red.
I know there's a way to do it using a VLOOKUP table but I can't find a concise explanation of what my lookup table needs to look like in order for it to work...
Anyone offer any suggestions?

Select cells H5:AM27
Go to Home -> Conditional Formatting -> New Rule -> Use a formula
Set the "highlight green" formula to =AND(H5<>"",H5>=$F5)
Repeat steps 1 and 2
Set the "highlight yellow" formula to =AND(H5<>"",H5>=$F5-3,H5<$F5)
Repeat steps 1 and 2
Set the "highlight red" formula to =AND(H5<>"",H5<$F5-3)

Related

Change color of a cell based on another cell

Say i have a list of 100 items. I want to automatically change the color of a specific cell of the item based on whether that item has been sold partially or not. So like if i have 100 quantities of this stock, if it's still 100 after one month then it should be red. Otherwise it should be changed to green if sales are made within that month.
Sorry if this is simple, much appreciated!
Based on the information this can be easily achieved using conditional formatting
I have populated a sample data below
Sample
Using conditional formatting , you need to set two rules
Turn Cell background to red if no values present in row
Turn cell background to green values present in row
Considering the sample data above, you need to select the Cells from C2 to C4 and create conditional formatting -> New rules -> Use a formula to determine which cells to format
Rule 1
then create one more rule
Rule 2
it should look like this in summary
summary
Click apply and you will have the result required

Excel Conditional Formatting - Highlight blank cells between

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.

Excel Conditional formatting whole table color code

I would like to create a condition for my whole table.
I have three categories (i.e R, G, B).
If the first column (example: A1) is R, the rest of the ROW (ex: B1:E1) should be colored with red. If G, then green, and if B, then Blue.
What I've done so far is I've selected my work area which is B1:E1, then clicked on conditional formatting > new rule > "Use a formula to determine which cell to format" (I'm using excel 2010). Then Typed this at the formula bar =SEARCH("R", $A$1)>0. It does change the color of B1:E1, however, I don't know how to do this for my whole table. If I select my whole table, and A1 is equal to R or G or B, the whole table change its color to whatever the value of A1. I also change my formula to =SEARCH("R", $A$1:$A$120)>0 which is the range of my table, still doesn't work. I've also created 3 conditions for each color with same formula (I just changed the letter R to G and B), still does not work.
Any ideas? Thank you in advance.
you were actually pretty close, just change
=SEARCH("R", $A$1)>0
to
=SEARCH("R", $A1)>0
so the conditional formatting rule will always look for "R" in the current row rather than row 1.
You should have this rule apply to the whole range that may be colored (I'm guessing B1:E120)
Also, you can make two rules for your other colors using the same approach.

Excel-Conditional Formatting-Conflicting Rules

I have three columns of dates. The first contains the start date, the second is a date for when a 2month review is due and the third is the date that review is completed. I then set conditional formatting to turn the dates that are overdue (+5 Days-Red and +15 Days-Yellow) from current date (this part works). Now what I want to do is turn a date that is red or yellow to green if a date is entered in the third column. I can do each individual cell, but there is too much information to individually add a rule to each cell in the column. Highlighting a single cell and adding the rule (Cell Value-equal too-Green) will work but again, there are too many cells in the columns. If I highlight the entire column and try add the rule it will not let me and states that a must only apply it to a single cell.
I then tried to add a rule by formula that if this cell is empty then it will turn it green. This isn’t working. I am not sure what to do…I thought about a macro that would remove conditional formula if the dates matched up or I could even highlight it a different color if it was completed late.
It might be best to explain what I will be using it for…we have people working and they are due performance reviews. I would like to open the spreadsheet and see (visual) which ones are due by color coding their importance. Then changing that warning color to a good color (green) so I know it’s been completed.
Select your entire range (in picure below A1:C9). With selected range apply three CF rules using formulas:
For red: =$B1-5>=TODAY()
For yellow: =$B1-15>=TODAY()
For green: =$C1<>""
and using MOVE UP and MOVE DOWN buttons change the order of CF rules as shown in the picture: green should be first, yellow - second, and red - the last

Using VBA for Excel i want to make the text bold

I want a macro to find all the words written a column in another excel & make them bold.
For EX: I have Words like new, grow, etc written in a column B of Excel an the macro has to Find theses words individually in another excel & make them bold and change the Background of the cell to Red Color.
Thanks in Advance.
You may want to have a look into conditionnal formatting.
Assume for example you have the values you want to look for in column B, and you want to highlight all values in a range, say, D4:F15.
Select the range D4:F15, make a new formatting rule and choose "Use a formula to determine which cells to format". Enter =ISNUMBER(MATCH(D4;$B:$B)) as formula, and make the format as you wish. Note that D4 in the formula has to be the first cell of the range.
If you don't need more than that, the benefit is that you don't need a macro at all, and the formatting can be done in real time too.

Resources