Conditional statement if date in cell is 'today' - excel

I'm trying to basically do: IF A1 is Today then highlight/bold/whatever B1 through F1.
Specifically I want to select a range of cells for the rule to apply to but I don't know how to write the IF statement in the "Use a formula to determine which cells to format" section

Please select B1:F1 HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=$A1=TODAY()
Format..., select choice of formatting, OK, OK.
Because CF is Conditional Formatting an IF statement is not normally required (it is assumed) - just a formula that returns TRUE.

Related

alternate cell shading on each group in col2

I would like to "walk" through a Excel column and if the the preceding or following cell has the same value or single, mark it with a color.
For example:
i have get this by creating an auxiliary column.Can anyone goal this without VBA nor an auxiliary column.
my solution
Select ColumnsA:B, clear any CF from it and then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=ISODD(SUMPRODUCT(1/COUNTIF($B1:$B$9,$B1:$B$9)))
Format..., select blue Fill, OK, OK.

Highlight alternative rows but not blanks?

I am using the following formula in a conditional format in order to highlight every other row on my spreadsheet:
=MOD(ROW(),2)=0
This works fine, however it highlights all rows whether blank or not. I don't want to highlight blank rows.
Please could someone show me how to do this?
Select the range to apply the formatting to, starting at Row1 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(ISEVEN(ROW()),A1<>"")
Format..., select choice of formatting, OK, OK.
This assumes you want to skip formatting a row if just the ColumnA cell in it is blank.
An alternative would be to stick with what you have but add another rule, giving it priority, just to test if the ColumnA cell is blank and then set "no formatting" for that.

Conditional Formatting from 2 columns

I am trying to change the colour of a cell if 2 conditions are true: 1. The date in the G column is before today, and 2: The value in column AM is "DISPATCH".
I have managed to change the to get a simple code for the Date which is: =$G$11<TODAY(), which works.
The code I am using for AM column is =ISNUMBER(SEARCH("SHIPPED",AM11))=FALSE - I Think something is going wrong here?
Please select from L5 to L44, then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(G5<TODAY(),AM5="""DISPATCH""")
Format..., select colour, OK, OK.

Format row based on text length

I need to sort out one macro. I have table and need to highlight a row with a color, but not the entire row, just from columns A to J when text in one of the cells in column A is longer than 4 digits-letters.
I don't want to use conditional formatting.
Can somebody please advice if it's possible?
To do so with Conditional Formatting, select ColumnsA-J then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=LEN($A1)>4
Format..., select highlighting OK, OK.

Formatting cell based on adjacent cell value

I would like a cell to be color filled or formatted based on the value in the adjacent cell. For example, if cell D1= #NA then I want the font in C1 to be filled in red.I would like to compare entire range in column C and D for this. Is there any conditional formatting rules or VBA macro that can accomplish this?
To apply such a format to C3 based on the contents of D3:
Select C3
In Conditional Formatting click New Rule...
Select "Use a
formula to determine which cells to format"
For the formula enter
"=ISNA($D$3)"
Click the Format button to set up the format that gets
applied when the previous formula returns TRUE
Hope that helps
Very simply select the range you want in column C and just make a conditional format using an equation and use
=$D1=""
and change the format text color to what ever you want.
Conditional formatting would be easiest way to do this.
If under conditional formatting you select new rule and then "use a formula to determine which cells to format". A formula such as =$D$1="#na" and change the format to what you would like. If you click OK and make sure this applies to C1 and stop if true is selected.
This worked for me! If you would like to use vba then let me know.
Conditional Formatting can do this. Pick the "Use a formula to determine which cells to format", enter
=7=ERROR.TYPE(D1)
Set the red fill. Now copy & apply to entire column.

Resources