#1
|
|||
|
|||
Fill cells based on value
I am looking for a way to fill a number of cells in a row/column based on a particular cell's value. So, if a cells value is say 7 or 3, then 7 cells or 3 cells must be be filled with a particular colour.
Thanks in advance |
#2
|
|||
|
|||
If A1=7 do you mean that A2:A8 must have a color, if A1=3 then A2:A4 must have a color and so on?
|
#3
|
|||
|
|||
That is correct
|
#4
|
|||
|
|||
See the attached.
|
#5
|
|||
|
|||
Great, very close to what I've been looking.
Except I would like to start the fill at a preferred cell. Would appreciate if you could educate me on how to do it? |
#6
|
|||
|
|||
|
#7
|
|||
|
|||
Let's say you have value (7, 3 ot whatever) in A1 then you can use the following formula in Conditional formatting:
=ROWS(G$10:G10)<=$A$1 if you want to start in G10. In the field Applies to can you write for example =$G$10:$G$100 if your max value in A1 will be 90. You can use the Format Painter to copy that conditional formatting to another start cell (ensure that the formula has same row number both before and after the colon). Then you can go to the field Applies to and set the reference to what you want. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Form auto fill based on a different field value. | stct | Word | 26 | 06-15-2019 04:08 PM |
Conditional formating all cells in an array based on adjacent cells | deejay | Excel | 6 | 12-20-2016 12:00 PM |
Color-fill a range of cells, based on text in a different sheet. Possible? | unittwentyfive | Excel | 2 | 06-01-2014 06:48 AM |
How can I count cells based on their fill color that was set by conditional format | trueimage | Excel Programming | 1 | 10-25-2013 12:08 PM |
How-TO format cells (FILL) by comparing cells | zanat0s | Excel | 1 | 07-03-2012 04:27 AM |