ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Fill cells based on value (https://www.excelbanter.com/excel-discussion-misc-queries/453903-fill-cells-based-value.html)

user03

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

zvkmpw

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.


In my example, cells of column A are filled in based on the value in cell C1.

Select column A and use "conditional Formatting" with "use a formula". The formula is
=ROW()<=$C$1
Choose the format and click OK.

With Excel 2010, when I update C1 the filled rows don't change (for some reason) until I select column A.

Hope this helps getting started.


All times are GMT +1. The time now is 03:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com