Highlight cell if month matches - excel

I need to highlight the Month cell if month matches in the first 4 cells.
For example, in first row I need to highlight E2 rather than E4. If there is no value in the first 4 cells, then i dont need to highlight any of the month cells.
I am trying with conditional formatting, but not able to nail it.
What I want

This works for me:
=OR((NOT(ISBLANK($A2:$D2))*(MONTH($A2:$D2)=E$1))>0)

Related

Comparing blank cells with conditional formating

I want to highlight Cell F4 if F4 is blank and E4 is not.
So in the scenario below I want the actual visit column to highlight if it is blank AND the 7 day due date is NOT blank. I am trying to have a visual alert of missed visits.
Entry Date 7 Day Due Date Actual Visit Date
12/18/18 12/24/18
12/01/18 12/07/18 12/7/18
Please select ColumnF and try a CF formula rule of:
=AND(F1="",E1<>"")
with formatting of your choice.
The condition format based on a formula:
applied to $C$2:$C$11
highlights a cell based on your condition.

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.

How to highlight consecutive cells that match specific criteria?

So I've got a column of randomly sorted numbers (10,20,30,40,50,60) and want to highlight the cells that only have 20-10 consecutively. I tried creating another column and using =OR(AND(C2=20,C3=10)) to see if the cells met that criteria and it worked but I need them highlighted, as I will be highlighting different combinations of numbers in different colors. I tried conditional formatting>new formula and this did not work. What am I doing wrong?
The first time 20 appears is C2 and the first time 10 appears it C3. I started highlighting cells (pressed Crtl before selecting cells) from C2 to the end. I used conditional formatting -> new formula and entered:
=AND(C2=20,C3=10)
This only highlighted cells every time 20 appeared. Any suggestions?

Highlighting rows based upon two adjacent cells being different but specific numbers

I am trying to put together a conditional formula for an Excel spreadsheet. What I need is for the row to highlight when cells A2 and B2 are two different, but specific numbers. For example, I want the second row highlighted when the value in A2 is exactly 12345 and when the adjacent value in B2 is exactly 67890. I do not want the row highlighted if the value in A2 is anything other than 12345 and the value in B2 is anything other than 67890. There are about 3,500 rows of numbers, so I am trying to speed up the process. I will eventually have to do the opposite, and see when the value in A2 is 67890 and when the value in B2 is 12345.
In order to clear up any questions, I am looking at an Excel document tracking phone calls made over a long period of time, and I want to highlight the whole row when two different phone numbers are calling each other among all the other phone calls.
With conditional formatting, you can use formulas. Highlight a row (let's say row 2 to start), and in Conditional Formatting, under "Use a formula...", =and($b2<>$a2,$a2=12345,$b2=67890).
If you apply that to your whole range (a2:b100, let's say), if the cell in A and B are different, and then only if A and B are the numbers you want, will the row be highlighted.
edit: added absolute cell references. Also, see #Grade'Eh'Bacon's comment.

Format a cell that is referenced by another cell

I need to format a cell that is specified by another cell. Basically after many calculations, the cell AL1 contains a cell reference, in this case it is AD48. I want to format cell AD48 and fill it red. This cell reference can, and will change so tomorow it may be AD54. I would then want only cell AD54 to be filled red and not AD48 anymore.
So basically whatever cell is specified in AL1, I want to format that cell (in this case fill it red)
ALOT of googling and no answer. Any help much appreciated!
Select sheet (click triangle immediately to the left of ColumnA and immediatley above Row1), Home > Styles - Conditional Formatting, New Rule, Format only cells that contain, Cell Value equal to =$AL$1, Format, Fill, Red, OK, OK.
Edit following clarification of requirement:
Change to Use a formula to determine which cells to format and apply
=SUBSTITUTE(CELL("address",A1),"$","")=$AL$1
Edit to add image of part of file uploaded by OP and some CF clarification.
Edit OP has an answer that works but posted this as a link in a comment. There is a solution that does not require formulae in AH1:AJ4 now that AA3 contains =TODAY():
=OR(AND($C5=TEXT($AA$3,"mmmm"),C8=DAY($AA$3)),AND($C4=TEXT($AA$3,"mmmm"),C7=DAY($AA$3)))
in Format values where this formula is true: and Applies to =$C$7:$AG$125. (Now formats both day of week and date of month).
Edit. Attempt at clarification (that should have been provided before!)
Selecting C7 as the start point, the formula for conditional formatting checks whether A or B is true:
A] Both the month name (in C5) matches the current month (long form) of =TODAY() in AA3) and the cell immediately below (ie C8) matches the day in AA3,
Or
B] Both the month name (in C4 – that is merged with C5) matches the month and the current cell (C8) matches the day in AA3.
Either case triggers the conditional formatting – hence this is applied in pairs of vertically adjacent cells.
Since the spreadsheet is well laid out (each month 11 rows and Day1 always in ColumnC) this same formula can be applied throughout with the nature of conditional formatting taking care of adjusting the relative references to cells in ColumnC up to the specified limit of Row 125 and in Row7 (or 8) for columns up to the specified limit of AG.

Resources