May 31, 2021
Alternating Colors Don't Work; Neither Does Conditional Formatting
My problem is that I cannot get alternating colors work, but only on one specific tab. I figured out that I could work around the issue with a custom conditional formatting code and that was fine for a time. The problem is that I took the same code and attempted to apply it to a different range of that same tab and I absolutely cannot get it to work.
I originally attempted to use =MOD(ROW(),2)=0 but it failed to work, causing the entire range to show up as a single color. I changed it to 4 instead, and I assume it works now because each currently presented row is actually two rows merged together.
I have no idea why this code will work in one part of the tab and not the other. I copy pasted the section to see if it would work. It did not. I nuked the entire area with the Clear Formatting and retyped the code by hand to see if it would work. It did not.
The only problem is that I want the first row to be colored instead of white and have the colors alternating from there. I was actually fine with this code working correctly with the 1 instead of the 0 because I assumed that I could change the range of the code and have it simply shift down a row. What I mean by this is that the first red column would be excluded from the conditional formatting so that it would also be white. From there, I would have simply colored the first row (which is currently white) with the fill bucket and it would have been fine.
The problem with this plan is that it doesn't matter what I do. That red row that I want to make white? It stays red.
Or, worse, it actually does turn white but not in the way I want.
For clarity's sake, the first row of this range is 39. I haven't been shifting the screenshots so the first row in every screenshot is also row 39.
Anyways, if anybody can help me, please do. It's extremely annoying, even if it's not that serious of an issue.
Details
Community content may not be verified or up-to-date. Learn more.
Last edited May 31, 2021
All Replies (5)