Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2017, 03:10 AM
hiwire03 hiwire03 is offline Fill cells based on value Windows 7 32bit Fill cells based on value Office 2013
Novice
Fill cells based on value
 
Join Date: Dec 2014
Posts: 17
hiwire03 is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 11-09-2017, 03:52 AM
xor xor is offline Fill cells based on value Windows 10 Fill cells based on value Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

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?
Reply With Quote
  #3  
Old 11-09-2017, 04:36 AM
hiwire03 hiwire03 is offline Fill cells based on value Windows 7 32bit Fill cells based on value Office 2013
Novice
Fill cells based on value
 
Join Date: Dec 2014
Posts: 17
hiwire03 is on a distinguished road
Default

Quote:
Originally Posted by xor View Post
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?
That is correct
Reply With Quote
  #4  
Old 11-09-2017, 04:44 AM
xor xor is offline Fill cells based on value Windows 10 Fill cells based on value Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

See the attached.
Attached Files
File Type: xlsx FillCells.xlsx (8.9 KB, 9 views)
Reply With Quote
  #5  
Old 11-09-2017, 08:50 AM
hiwire03 hiwire03 is offline Fill cells based on value Windows 7 32bit Fill cells based on value Office 2013
Novice
Fill cells based on value
 
Join Date: Dec 2014
Posts: 17
hiwire03 is on a distinguished road
Default

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?

Reply With Quote
  #6  
Old 11-09-2017, 08:57 AM
hiwire03 hiwire03 is offline Fill cells based on value Windows 7 32bit Fill cells based on value Office 2013
Novice
Fill cells based on value
 
Join Date: Dec 2014
Posts: 17
hiwire03 is on a distinguished road
Default

Reply With Quote
  #7  
Old 11-09-2017, 09:16 AM
xor xor is offline Fill cells based on value Windows 10 Fill cells based on value Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

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.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill cells based on value 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
Fill cells based on value 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
Fill cells based on value How-TO format cells (FILL) by comparing cells zanat0s Excel 1 07-03-2012 04:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft