alternate cell shading on each group in col2 - excel-formula

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.

Related

Excel conditional formatting: color based on comparison of values in a row

how can one format the color of cells according to their values in that row? In this table, I want to give red for the most expensive carrier, green for the cheapest one and orange fro the middle range one, for each row:
After conditional formatting, it should look like this:
Thank you!
Apply Graded Color Scale conditional formatting, but set the Applies to range to =$B$2,$E$2:$F$2
Then use format painter to copy this conditional formatting to the rows below. You'll end up with a separate rule for each row:
Format your colors to suit.
Another way with just two rules is to 'standard' fill with orange as much of ColumnsB, E and F as required, select and clear any CF rules from B:F 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(B1=MAX($B1,$E1,$F1),B1<>"")
Format..., select red Fill, OK, OK.
Add another formula rule of:
=AND(B1=MIN($B1,$E1,$F1),B1<>"")
with green Fill.
Select ColumnD and Clear Rules from Selected Cells.
In case of ties green will have precedence, unless the rule order is reversed.

Compare and highlight

I compare 2 tables with numbers and need to highlight number red in TABLE A if it's less than number on TABLE B.
Could you please help with this?
Thanks.
Clear formatting from and select ColumnsA:C then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=A1<E1
Format..., select choice of formatting, OK, OK.
You could use the conditional formatting function build in within Excel, and than use the condition that the values of table A are colored when they are lower than the values in table B.
Link for more information

Conditional formatting where two columns in a table are not the same

I have a table called promos containing 2 columns existing mechanic_code and new mechanic_code. I want to format the values in those columns accordingly if they are not equal.
I tried this
=INDIRECT("promos[existing mechanic_code]")<>INDIRECT("promos[new mechanic_code]")
in my Conditional Formatting formula but it didn't have the desired affect. It evaluated to true for all cells (i.e. coloured them all red):
Here is an example of exactly what I mean: https://1drv.ms/x/s!AjcmU60daA9VqsRFaZzng_w1gP_EWQ
I only want to highlight rows where the two columns are different.
Anyone know how to solve this?
I had to do this to make it work:-
=INDIRECT("table2[#old]")<>INDIRECT("table2[#new]")
where my column headings were just "old" & "new"
so yours should be
=INDIRECT("promos[#existing mechanic_code]")<>INDIRECT("promos[#new mechanic_code]")
But because you've put a space and an underscore in your column headers you will have to use instead:-
=INDIRECT("Promos[#[Existing Mechanic_Code]]")<>INDIRECT("Promos[#[New Mechanic_Code]]")
Please select B3:C6 and and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=$B3<>$C3
Format..., select red Fill, OK, OK.

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.

Resources