Matthew Recknagel
New Member
- Joined
- Nov 2, 2011
- Messages
- 13
Hello Mr. Excel,
I have been searching on multiple occasions for a solution to my highlighting needs. At one point and time I found a guide that showed me how to highlight all rows that had the same cell value, then when the cell value changed it would alternate the shading. It used a MOD formula that was inserted into the first column and returned a 0 or 1 as pictured below, then with conditional formatting you could highlight based off of the 1 or 0. This worked great until I wanted to filter the data, lets say odds only, it would filter but keep the original Mod formula value resulting in the table to not be alternate shading any more. (could not highlight so i used bolded text to show what i mean)
[TABLE="width: 750"]
<tbody>[TR]
[TD]Unfiltered Table
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Filtered Table (odds)
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mod Formula
[/TD]
[TD]Sorted Value
[/TD]
[TD]Data
[/TD]
[TD][/TD]
[TD]Mod Formula
[/TD]
[TD]Sorted Value
[/TD]
[TD]Data
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]2
[/TD]
[TD]35
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]6
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]7
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]4
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
My question would be, is there any conditional formatting setup that could alternatively shade based on cell value AND work with filtering? I have seen many guides that alternate shading every 2 or 3 rows which is not what i am looking for. Any help?
Thank You,
Matt Recknagel
I have been searching on multiple occasions for a solution to my highlighting needs. At one point and time I found a guide that showed me how to highlight all rows that had the same cell value, then when the cell value changed it would alternate the shading. It used a MOD formula that was inserted into the first column and returned a 0 or 1 as pictured below, then with conditional formatting you could highlight based off of the 1 or 0. This worked great until I wanted to filter the data, lets say odds only, it would filter but keep the original Mod formula value resulting in the table to not be alternate shading any more. (could not highlight so i used bolded text to show what i mean)
[TABLE="width: 750"]
<tbody>[TR]
[TD]Unfiltered Table
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Filtered Table (odds)
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mod Formula
[/TD]
[TD]Sorted Value
[/TD]
[TD]Data
[/TD]
[TD][/TD]
[TD]Mod Formula
[/TD]
[TD]Sorted Value
[/TD]
[TD]Data
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]1
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]2
[/TD]
[TD]35
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]6
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]7
[/TD]
[/TR]
[TR]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]4
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
My question would be, is there any conditional formatting setup that could alternatively shade based on cell value AND work with filtering? I have seen many guides that alternate shading every 2 or 3 rows which is not what i am looking for. Any help?
Thank You,
Matt Recknagel