Conditional Format for row based on value in cell

NZAS

Board Regular
Joined
Oct 18, 2012
Messages
117
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi
I have data set that changes regularly. When the data change what I want to have happen is to have the row colour like a table would base on the date in column K. i.e that is were the date is the same I and the row to be coloured. If only on colour an be used then colour the even or odd sets of dates with a colour
my example is below Rows 2 and 3 coloured
Row 4 to 7 no colour or lighter colour etc,etc where the same date is in Column "K"

Cheers
NZAS

column "K"
First
Last
Certified
Expires
Days left
Traci

Brown

5/09/2016

5/09/2018

0
Mary

Hannan

21/03/2016

5/09/2018

0
Linda
Thomas

28/02/2016

28/02/2018

0
Sarah
Burton

18/10/2016

28/02/2018

0
Kevin
Grizzle

13/04/2016

28/02/2018

0
Chad
Jackson

12/10/2016

28/02/2018

0
Alene
Helsel

17/04/2016

12/10/2018

0
Jason
Ward

16/03/2016

16/03/2018

0
Edward
Taylor

22/12/2015

22/12/2017

0
Debbie
Jackson

15/10/2016

22/12/2017

0
Lucy
Copeland

1/05/2016

22/12/2017

0
Elaine
Evatt

5/04/2016

22/12/2017

0
Robert
Williams

3/11/2016

22/12/2017

0
Rita
Helms

1/04/2016

22/12/2017

0
Richard
Hall

9/06/2016

22/12/2017

0
Mark
Kroeger

5/01/2016

5/01/2018

0
Carolyn
Perry

12/03/2016

5/01/2018

0

<tbody>
</tbody>
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
What do you want to do with row 8, the only row that has that value ?

If this should be a different colour from row 7 (and the same as rows 2,3) then the rule you want to apply is not so much about grouping of similar results.
Instead it can be formulated as "flip the colour when the date changes".

One way to implement this in Excel is to use a helper column to flip between -1 and 1 every time the date changes.
Like this, in M2 (the cell to the right of 0 for Traci Brown)
=if(K2=K1,M1,M1*-1)
and copy all the way down column M.
Edit to add - put a value of 1 in cell M1 to start you off.

Column M can be hidden if you like.

Then apply Conditional Formating using column M, and apply to the whole row.
You can do this with one rule in CF - apply a default colour as one of your two colours, and make CF apply the other colour if the value in column M = -1.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top