Reputation: 9
I'm trying to color the background of a bunch of cells based on their value and a specified range.
So lets say the range is 1.0-3.0, then the cells with 3.0 are colored black and the ones with 1.0 are colored white with cells having intermediate value getting a shade of grey on a linear scale.
I'm sure scripting is involved. Any help would be appreciated
Upvotes: 0
Views: 4908
Reputation: 59442
Sheets now has a Colour scale feature.
Say your data is in A2:G2. Select the range, Format, Conditional formatting..., Colour scale, for Minpoint
select Number and enter 1
with white fill and for Maxpoint
select Number and enter 3
with black fill, Done:
Upvotes: 0
Reputation: 3655
A guy has written a sheet which does exactly what you need.
(original post: http://www.andrewroberts.net/2013/12/google-sheet-color-scales/)
Usage:
Upvotes: 1