Comparing blank cells with conditional formating - excel

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.

Related

How to refer to a current cell in a range when using conditional rules?

I have a column of cells range(A2:A10) containing a date for the first day of each week.
I want the cell color to change when the date is in the past.
When I select the cells I can apply a conditional rule but I can't figure out how to write the formula so it applies to each individual cell.
For example:
formula
=A2>TODAY()
works
However that rule will apply to the whole range returning the result for whether the date value in A2 is in the past.
I want the formula so that the value in A3 is the deciding factor for cell A3, A4 is the deciding factor for A4 etc..
The best way I can explain it would be using "this" in coding when writing the formula.
Select cells you want formatting in. For example A2:A10. When creating rule choose "Format only cells that contains" and in "Format only cells with:" choose "less than" and write =TODAY() formula:
Result:
Keep in mind that date format may be different due to settings.
Also tested your formula and it works fine:

Excel Conditional formatting Dates older then 60 days

I'm trying to use one Conditional formatting rule that does the following:
Ignore Blank Cells
Ignore Cells that do not have a date value
Highlight Dates that are going to expire in 30 days
So i have a list of dates:
07/25/2021
06/25/2021
05/25/2021
etc...
i used the custom formula under conditional formatting and used the following codes:
=CountIF(A:Z,today()-30)
i also used
=CountIF(A:Z,"<="&today()-30)
both codes highlight blank cells, i tried using the IF statements or IsBlank statements but i don't think i fully understand how those work. because i made a mess.
regardless of what i do, cells that are non-dates and blank cells are highlighted.
i even tried using the the conditional formatting rule, "Format only cells that contain" and i added the following:
Format Only cells with:
Cell value - less than or equal to - Today()-30
what do you guys think im doing wrong?
Assuming that your dates are in column B:
Select entire column B.
From menu start Format / Conditional formatting...
Add a new rule with the plus sign.
At Style select Classic.
After select Use a formula to determine which cells to format
Enter this expression: =AND($B1<>"",$B1<=TODAY()-30)
Select a desired formatting.
You can easily adjust this to row or any other range, or +30 days etc.
If you need more columns, select all of them, and assuming that the first column is A, the formula should be: =AND(A1<>"",A1<=TODAY()-30). See the screenshot below with formula and some example data:

Highlight those two cells of which it is not same in one column

So, I have this excel 2016 spreadsheet with half million rows in which D2 is equal to D3, D4 is equal to D5 and D6 is equal to D7 and so on. But in some instances like D12 and D13, those two dates are not equal. Can anybody let me know how to highlight those two values which one has the different date to each other? Any formula or something? Difficult to do one by one
enter image description here
If I am understanding you correctly, you wish to flag any rows where the charge effective end date is different between the Discount and the Monthly fee
Try this in a blank column on row 3, then drag it down to the end of your data:
=IF(AND($B2=$B3, $D2=$D3), "", False)
First, select cell E2, then go to Home > Conditional Formatting > New Rule > Format only cells that contain, and in the fields below, choose Cell Value, not equal to, =$D2, and pick the format you want to display. You can follow the pic below.
Then under Conditional Formatting Rules Manager, change the Applies to to =$E$2:$E$100 (remember to apply to any cell that you want to have this feature). Click Ok or Apply and you should see the results like below.
Try and let me know.

Highlight a cell if a corresponding cell (in another sheet) has a value in it

I am trying to compare pages of employee hours verses sales. In order to catch myself if I record sales and not hours, I'd like the hours cell for a given date to highlight itself, if the sales cell has a value.
Here's an example of the "hours" sheet:
2-Nov 3-Nov 4-Nov
Smith Judy 0.8 7.25 0
And an example of the "totals" sheet:
2-Nov 3-Nov 4-Nov
Smith Judy $15.72 $76.55 $82.13
The problem would be that Judy is listed as selling $82.13 (E2) in product, while having worked 0 hours (E2) according to the "hours" sheet.
Is there a conditional formatting formula that I can use to get Excel to highlight the "0" listed under 4-Nov on "Hours"?
Is there a conditional formatting formula that I can use to get Excel to highlight the "0" listed under 4-Nov on "Hours"?
Yes. If you want to highlight the "0" on the "Hours" sheet, you can use conditional formatting where the formula includes a reference to a cell on a different sheet.
For example, click on the Hours sheet cell E2. Go to Conditional Formatting -> New Rule -> Use a Formula to Determine Which Cells to Format and paste a formula in the "Format values where this formula is true:" box there, like:
And(E2>0,totals!E2 =0)
Then click the Format button below it on the right, activate the Fill tab, and click what color you want the cell to be highlighted in.
Thanks to Scott Craner's comment on the question for providing an improved formula.
Rather than just formatting a singe cell, I suggest selecting all the relevant columns in hours (presumably starting with C) 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(OR(C1="",C1=0),NOT(ISBLANK(totals!C1)),NOT(ISBLANK($B2)))
Format..., select your choice of highlighting OK, OK.
This warns even when blank rather than 0 in hours but relies on names such as Judy to avoid extending to empty rows. It also allows for values in totals of nil or negative (in case of adjustments).

Highlight cell if month matches

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)

Resources