Something like a Gantt Chart

mun_kut

New Member
Joined
Apr 9, 2009
Messages
48
Hi

I have a table like this:
<table border="0" cellpadding="0" cellspacing="0" width="299"><col style="width: 80pt;" width="107"> <col style="width: 48pt;" width="64" span="3"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl25" style="height: 12.75pt; width: 80pt;" width="107" height="17">A</td> <td class="xl25" style="width: 48pt;" width="64">B</td> <td class="xl25" style="width: 48pt;" width="64">C</td> <td class="xl25" style="width: 48pt;" width="64">D</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl27" style="height: 12.75pt;" height="17">Job</td> <td class="xl27">Start</td> <td class="xl27">End</td> <td class="xl27">Amount</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" height="17">Rent paid - 1</td> <td class="xl26" align="right">6/1/2011</td> <td class="xl26" align="right">8/31/2011</td> <td class="xl24" align="right">800</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" height="17">Rent paid - 2</td> <td class="xl26" align="right">9/1/2011</td> <td class="xl26" align="right">1/31/2012</td> <td class="xl24" align="right">1000</td> </tr> </tbody></table>
I would like transform this data in a format like this (something like a Gantt chart, but with the amount in the "End" month column:
<table border="0" cellpadding="0" cellspacing="0" width="512"><col style="width: 48pt;" width="64" span="8"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl25" style="height: 12.75pt; width: 48pt;" width="64" height="17">A</td> <td class="xl25" style="width: 48pt;" width="64">B</td> <td class="xl25" style="width: 48pt;" width="64">C</td> <td class="xl25" style="width: 48pt;" width="64">D</td> <td class="xl25" style="width: 48pt;" width="64">E</td> <td class="xl25" style="width: 48pt;" width="64">F</td> <td class="xl25" style="width: 48pt;" width="64">G</td> <td class="xl25" style="width: 48pt;" width="64">H</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl26" style="height: 12.75pt;" height="17">Jun</td> <td class="xl26">Jul</td> <td class="xl26">Aug</td> <td class="xl26">Sep</td> <td class="xl26">Oct</td> <td class="xl26">Nov</td> <td class="xl26">Dec</td> <td class="xl26">Jan</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl27" style="height: 12.75pt;" height="17"> </td> <td class="xl27"> </td> <td class="xl28" align="right">800</td> <td class="xl24"> </td> <td class="xl24"> </td> <td class="xl24"> </td> <td class="xl24"> </td> <td class="xl24"> </td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" height="17"> </td> <td class="xl24"> </td> <td class="xl24"> </td> <td class="xl29"> </td> <td class="xl29"> </td> <td class="xl29"> </td> <td class="xl29"> </td> <td class="xl30" align="right">1000</td> </tr> </tbody></table>

Well, the colors are not being copied here...but there A2 through C2 should be filled-in by a color, and D3 through H3 should be filled-in by a color as well.

Appreciate your help in advance.

MK
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,224,594
Messages
6,179,792
Members
452,942
Latest member
VijayNewtoExcel

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
Back
Top