Auto colour

24849308

New Member
Joined
Jul 12, 2009
Messages
47
Hi, Is there a way to situ colour a range of cells based on a number is a separate cell

e.g. If C10 had a value of 32, then 32 cells from a range of A1-50 would turn green. If C10 number changed then so would the coloured cells in column A
 

Some videos you may like

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,517
Office Version
  1. 365
Platform
  1. Windows
How about
+Fluff v2.xlsm
ABC
1
2
3
4
5
6
7
8
9
107
11
12
13
14
15
16
17
18
19
20
21
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A20Expression=ROW()<=$C$10textNO
 

24849308

New Member
Joined
Jul 12, 2009
Messages
47
How about
+Fluff v2.xlsm
ABC
1
2
3
4
5
6
7
8
9
107
11
12
13
14
15
16
17
18
19
20
21
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A20Expression=ROW()<=$C$10textNO
Looks like has nearly worked, thank you. I need the colouringto start from A17 now, if possible
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,517
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

In that case select A17 downwards & use
Excel Formula:
=ROW()-16<=$C$10
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,517
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,505
Messages
5,625,199
Members
416,080
Latest member
blemon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top