Gant like chart

ANDREWUK

New Member
Joined
Sep 17, 2006
Messages
1
Hi new here,

After some help!

I am writing a spread to produce a Gant like chart.
I have produced a gant chart using conditional formatting to fill in the cells no problem
Like this example http://www.mrexcel.com/tip058.shtml

But no rather than enter a start and end day I wish to only have one column for the number of days.
Therefore the 1st row would be 10 days and 10 cells would fill, the second row would say 5 days and
This would fill in 5 rows starting after the day (but on the row below), is this possible any tips or ideas
Welcome.


thanks
[/b]
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

tusharm

MrExcel MVP
Joined
May 28, 2002
Messages
11,029
Lightly tested...

Suppose your data are in column A starting with A1. Now, select the cells in row 1 starting with B1. Select Format | Conditional Formatting..., change the first dropdown to 'Formula Is', and enter the formula =COLUMN()-COLUMN($B1)+1<=SUM($A$1:$A1) Set the format as desired.

Now, select all additional rows of interest starting with B2. Select Format | Conditional Formatting..., change the first dropdown to 'Formula Is', and enter the formula
=AND($A2<>"",COLUMN()-COLUMN($B2)+1<=SUM($A$1:$A2),COLUMN()-COLUMN($B1)+1>SUM($A$1:$A1))
Set the format as desired.

[Note the use of both absolute and relative addresses in the 2 formulas.]
 

Forum statistics

Threads
1,141,592
Messages
5,707,287
Members
421,500
Latest member
Alex2302

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