I have column G with some of the cells (not all cells) which contain dates. Now I need to use conditional formatting =($G1-TODAY())<0
The formula is working correct by highlighting in red the dates which are over-due. The issue that I'm having is that even cells which contain test or which are blank are being highlighted in red.
Is there a ways to only make the formula effective for cells which contain dates?
Your conditional format can test for text in cells or blank cells like this:
=AND(NOT(OR(ISTEXT(G1),ISBLANK(G1))),G1<TODAY())
Related
I am trying to show that a cell must be filled in. I want to use conditional formatting to highlight the cell isn't filled out using conditional formatting. Based on an EMPTY spreadsheet (gets filled in weekly by row, so I don't want a bunch of red cells until a line is filled in). I want a cell in column I to turn red when either columns "B:H" have text. Then if the person fills out a cell in column I the coloring goes away. I have tried =AND(ISTEXT(B#),ISNONTEXT(I#)), but this means that when a different row in column B is filled out the conditional formatting doesn't work. I then tried to individually put the condition formatting in, but it only works on the first 2 rows. I also tried =AND(ISTEXT($B#),ISNONTEXT($I#)) to show that it is based on the column, that also didn't work. Any help would be greatly appreciated.
Assuming B:H are empty. You can use an AND formula looking at COUNTA (of B:H) combined with ISBLANK (column I).
Select range I2:I4 and input this formula into your Conditional Format Rule:
=AND(COUNTA(B2:H2)>=1,ISBLANK(I2))
Then change your conditional format fill as RED.
Output:
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:
I have a COUNTIF statement that is working fine. But I would like to the conditionally format the cells that are being counted so I can identify them more easily. So it is counting the number of cells in a long list that fall into one of 7 categories. I would like the the cells being "counted" in each category to be formatted such that they become a unique color or whatever. Is this possible?
Select the range that you want to apply the conditional formatting on.
Conditional Formatting -> New Rule -> Use a formula to determine which cells to format
From there type in the following formula:
=ISFORMULA(RANGE)
Replace RANGE with the first value in the column you are formatting
Edit formatting to your liking.
I'm trying to highlight a cell using conditional formatting based on matching criteria in 2 different cells, 1 of which is the cell I want highlighted. In a row if a cell contains "ABC" and "Yes" in another I want the Yes cell highlighted.
I've yet to be able to figure out how to get this to work after searching and searching formulas. I've tried different IF, AND, etc formulas to no avail.
Apply the conditional format to the cell that you want to be formatted. Use a conditional format with a formula. If you want to evaluate two different cells, you can use the AND() function to combine conditions, for example select cell B and use this CF formula
=AND(A1="ABC",B1="Yes")
This formula will evaluate to either TRUE or FALSE and the conditional format will be applied when the result is TRUE.
If you want the whole row to change color, select all the cells in row 1 and make sure that the formula locks in the correct columns with the $ sign.
=AND($A1="ABC",$B1="Yes")
In cell A1, I've put ABC, and in B1, I've put Yes.
Then I used following formula in another cell's conditinal formatting:
=AND(EXACT(A1;"ABC");EXACT(B1;"Yes"))
I want to use conditional formatting to highlight consecutive cells in a column if they are populated.
If there is only once cell that is populated followed by a blank row, I do not want to highlight that row.
Which formula should I use.
Select entire column and apply conditional formatting with formula: =COUNTBLANK(A1:A2)=0:
Result: