#1   Report Post  
greg7468
 
Posts: n/a
Default Cell shading problem


Hi all,
I am hoping you can help me with the following problem.

I am trying to create an easy cycle time sheet as follows

- Col A --------------- Col b ---------- Col C --------------- Col D -

step number------Description-------Time----------
----1-------------------pick---------------2-------------"cell shaded
red"
-----------------------------------------------------------"cell shaded
red"
----2-----------------place---------------3-------------"cell shaded
blue"
-----------------------------------------------------------"cell shaded
blue"
-----------------------------------------------------------"cell shaded
blue"
----3------------------drill----------------1-------------"cell shaded
green"

Given the time I input into col C is there anyway I can shade the
corresponding row in col D and the next "x" amount of cells down
dependant on the number in col c.

This would give me a easy to read colour coded timeline in column D.

Thanks for all your help.


--
greg7468


------------------------------------------------------------------------
greg7468's Profile: http://www.excelforum.com/member.php...fo&userid=9031
View this thread: http://www.excelforum.com/showthread...hreadid=380860

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Perhaps this will help or get you started, Greg:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=319
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"greg7468" wrote in
message ...

Hi all,
I am hoping you can help me with the following problem.

I am trying to create an easy cycle time sheet as follows

- Col A --------------- Col b ---------- Col C --------------- Col D -

step number------Description-------Time----------
----1-------------------pick---------------2-------------"cell shaded
red"
-----------------------------------------------------------"cell shaded
red"
----2-----------------place---------------3-------------"cell shaded
blue"
-----------------------------------------------------------"cell shaded
blue"
-----------------------------------------------------------"cell shaded
blue"
----3------------------drill----------------1-------------"cell shaded
green"

Given the time I input into col C is there anyway I can shade the
corresponding row in col D and the next "x" amount of cells down
dependant on the number in col c.

This would give me a easy to read colour coded timeline in column D.

Thanks for all your help.


--
greg7468


------------------------------------------------------------------------
greg7468's Profile:

http://www.excelforum.com/member.php...fo&userid=9031
View this thread: http://www.excelforum.com/showthread...hreadid=380860



  #3   Report Post  
greg7468
 
Posts: n/a
Default


Thank you both for your help,

Swatspop the sheet could look like that as long as the numbers
autofilled down and did not have to be put in manually.
Is it possible for the numbers to autofill down the amount of rows that
equal to the number in the cell?

Anne that solutution would be perfect, if only I could then put the
next number into row 19 and the resulting number of rows be shaded and
stacked on top of the first set.
Could this be possible?

Thanks again for your help.

Greg.


--
greg7468


------------------------------------------------------------------------
greg7468's Profile: http://www.excelforum.com/member.php...fo&userid=9031
View this thread: http://www.excelforum.com/showthread...hreadid=380860

  #4   Report Post  
swatsp0p
 
Posts: n/a
Default


Let's assume your data begins in row 2. Enter '2' in C2. In C3 enter
'=C2'. Copy this formula down as far as you will need. Now, in the
appropriate cells, enter your '3' (in C4) or '1' (in C7) as needed
(overwriting the formula in those cells). Column C now has
2,2,3,3,3,1....

Next, set up Conditional Formatting in column D. Highlight cell D2 and
select FormatConditional Formatting... enter three conditions as
such:

Cond. 1Formula is: C2=2 and set your desired format
Cond. 2Formula is: C2=3 repeat
Cond. 3Formula is: C2=1 repeat

copy this format down D3:Dnn (copy D2, highlight desired range and
Paste Special...Formats)

HTH

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=380860

  #5   Report Post  
swatsp0p
 
Posts: n/a
Default


Is it possible that your sheet could look like this:?

Col A --------------- Col b ---------- Col C --------------- Col D -
step number------Description-------Time----------
----1-------------------pick---------------2-------------"cell shaded
red"
--------------------------------------------*2*-------------"cell
shaded red"
----2-----------------place---------------3-------------"cell shaded
blue"
--------------------------------------------*3*--------------"cell
shaded blue"
--------------------------------------------*3*--------------"cell
shaded blue"
----3------------------drill----------------1-------------"cell shaded
green"


If so, Conditional Formatting would easily handle this task.


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=380860



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Excel formulas based upon the color shading of a cell? DGBG Excel Worksheet Functions 1 April 12th 05 10:35 PM
message "Too many different cell formats" problem Ed Excel Worksheet Functions 1 March 12th 05 11:46 PM
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable [email protected] Excel Worksheet Functions 2 December 11th 04 12:00 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 06:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"