shippey121
Well-known Member
- Joined
- Mar 21, 2006
- Messages
- 1,003
Morning All
i had a table where i use row banding, quite simple odd rows white, even rows grey. the table got more complex when some rows had multiple lines that needed to be banded together
what im wanting to do is alter the banding depending on a cell value, i found
this check column E values and everytime there is a change using conditional formatting switches the colour
row Column E Column F
Row 2 CH59690 Rich
Row 3 CH59690 Rich
Row 4 CH59691 Craig
Row 5 CH59691 Craig
Row 6 CH59692 Rich
Row 7 CH59692 Rich
using the data above row 2&3 should be gray, rows 4&5 should be white. 6&7 back to gray. using the formula above works fine.
however if i put a filter in place on column F, when i filter "Rich" rows 4&5 disappear, rows 2,3,6&7 stay gray due to the formula seeing the hidden rows, i would like them to be Rows 2,3 Gray, 6,7 White
does anyone have any solutions / ideas on how this can be achieved either formula or VBA
i had a table where i use row banding, quite simple odd rows white, even rows grey. the table got more complex when some rows had multiple lines that needed to be banded together
what im wanting to do is alter the banding depending on a cell value, i found
Code:
MOD(SUMPRODUCT(--($E$1:$E1<>$E$2:$E2)),2)
this check column E values and everytime there is a change using conditional formatting switches the colour
row Column E Column F
Row 2 CH59690 Rich
Row 3 CH59690 Rich
Row 4 CH59691 Craig
Row 5 CH59691 Craig
Row 6 CH59692 Rich
Row 7 CH59692 Rich
using the data above row 2&3 should be gray, rows 4&5 should be white. 6&7 back to gray. using the formula above works fine.
however if i put a filter in place on column F, when i filter "Rich" rows 4&5 disappear, rows 2,3,6&7 stay gray due to the formula seeing the hidden rows, i would like them to be Rows 2,3 Gray, 6,7 White
does anyone have any solutions / ideas on how this can be achieved either formula or VBA