kelvinlow39
New Member
- Joined
- May 22, 2016
- Messages
- 3
Hello,
I am looking at creating a Price Model, and I am looking at the best way to solve the problem other than having lots of columns.
My data Set looks like This
[TABLE="width: 866"]
<tbody>[TR]
[TD="align: center"]Cost Type[/TD]
[TD="align: center"]Qty[/TD]
[TD="align: center"]Unit Mth Cost[/TD]
[TD="align: center"]Margin[/TD]
[TD="align: center"]Unit Sell[/TD]
[TD="align: center"]Start Date[/TD]
[TD="align: center"]End Date[/TD]
[TD="align: center"]Total Mths[/TD]
[TD="align: center"]Total Cost[/TD]
[TD="align: center"]Total Sell[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]$80[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"] $114[/TD]
[TD="align: center"]1/01/2016[/TD]
[TD="align: center"]31/12/2025[/TD]
[TD="align: center"]120[/TD]
[TD="align: center"]$96,000[/TD]
[TD="align: center"]$137,143[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]$100[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"] $143[/TD]
[TD="align: center"]1/07/2016[/TD]
[TD="align: center"]30/06/2024[/TD]
[TD="align: center"]96[/TD]
[TD="align: center"]$115,200[/TD]
[TD="align: center"]$164,571[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]$200[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"] $286[/TD]
[TD="align: center"]1/07/2019[/TD]
[TD="align: center"]31/12/2022[/TD]
[TD="align: center"]42[/TD]
[TD="align: center"]$117,600[/TD]
[TD="align: center"]$168,000[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]16[/TD]
[TD="align: center"]$1,000[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"] $1,429[/TD]
[TD="align: center"]1/01/2018[/TD]
[TD="align: center"]31/01/2023[/TD]
[TD="align: center"]61[/TD]
[TD="align: center"]$976,000[/TD]
[TD="align: center"]$1,394,286[/TD]
[/TR]
</tbody>[/TABLE]
And I am looking to Extract 2 Tables that look like this
[TABLE="width: 930"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="colspan: 2, align: center"]Fiscal or calendar year[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Cost[/TD]
[TD="align: center"]Yr1[/TD]
[TD="align: center"]Yr2[/TD]
[TD="align: center"]Yr3[/TD]
[TD="align: center"]Yr4[/TD]
[TD="align: center"]Yr5[/TD]
[TD="align: center"]Yr6[/TD]
[TD="align: center"]Yr7[/TD]
[TD="align: center"]Yr8[/TD]
[TD="align: center"]Yr9[/TD]
[TD="align: center"]Yr10[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 930"]
<tbody>[TR]
[TD][/TD]
[TD="colspan: 2, align: center"]Fiscal or calendar year[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Price[/TD]
[TD="align: center"]Yr1[/TD]
[TD="align: center"]Yr2[/TD]
[TD="align: center"]Yr3[/TD]
[TD="align: center"]Yr4[/TD]
[TD="align: center"]Yr5[/TD]
[TD="align: center"]Yr6[/TD]
[TD="align: center"]Yr7[/TD]
[TD="align: center"]Yr8[/TD]
[TD="align: center"]Yr9[/TD]
[TD="align: center"]Yr10[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[/TR]
</tbody>[/TABLE]
have got this to work but is does use lots of columns I was hoping for a simple way to extract the above reports
Regards
Kelvin
I am looking at creating a Price Model, and I am looking at the best way to solve the problem other than having lots of columns.
My data Set looks like This
[TABLE="width: 866"]
<tbody>[TR]
[TD="align: center"]Cost Type[/TD]
[TD="align: center"]Qty[/TD]
[TD="align: center"]Unit Mth Cost[/TD]
[TD="align: center"]Margin[/TD]
[TD="align: center"]Unit Sell[/TD]
[TD="align: center"]Start Date[/TD]
[TD="align: center"]End Date[/TD]
[TD="align: center"]Total Mths[/TD]
[TD="align: center"]Total Cost[/TD]
[TD="align: center"]Total Sell[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]$80[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"] $114[/TD]
[TD="align: center"]1/01/2016[/TD]
[TD="align: center"]31/12/2025[/TD]
[TD="align: center"]120[/TD]
[TD="align: center"]$96,000[/TD]
[TD="align: center"]$137,143[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]$100[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"] $143[/TD]
[TD="align: center"]1/07/2016[/TD]
[TD="align: center"]30/06/2024[/TD]
[TD="align: center"]96[/TD]
[TD="align: center"]$115,200[/TD]
[TD="align: center"]$164,571[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]$200[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"] $286[/TD]
[TD="align: center"]1/07/2019[/TD]
[TD="align: center"]31/12/2022[/TD]
[TD="align: center"]42[/TD]
[TD="align: center"]$117,600[/TD]
[TD="align: center"]$168,000[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]16[/TD]
[TD="align: center"]$1,000[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"] $1,429[/TD]
[TD="align: center"]1/01/2018[/TD]
[TD="align: center"]31/01/2023[/TD]
[TD="align: center"]61[/TD]
[TD="align: center"]$976,000[/TD]
[TD="align: center"]$1,394,286[/TD]
[/TR]
</tbody>[/TABLE]
And I am looking to Extract 2 Tables that look like this
[TABLE="width: 930"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="colspan: 2, align: center"]Fiscal or calendar year[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Cost[/TD]
[TD="align: center"]Yr1[/TD]
[TD="align: center"]Yr2[/TD]
[TD="align: center"]Yr3[/TD]
[TD="align: center"]Yr4[/TD]
[TD="align: center"]Yr5[/TD]
[TD="align: center"]Yr6[/TD]
[TD="align: center"]Yr7[/TD]
[TD="align: center"]Yr8[/TD]
[TD="align: center"]Yr9[/TD]
[TD="align: center"]Yr10[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 930"]
<tbody>[TR]
[TD][/TD]
[TD="colspan: 2, align: center"]Fiscal or calendar year[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Price[/TD]
[TD="align: center"]Yr1[/TD]
[TD="align: center"]Yr2[/TD]
[TD="align: center"]Yr3[/TD]
[TD="align: center"]Yr4[/TD]
[TD="align: center"]Yr5[/TD]
[TD="align: center"]Yr6[/TD]
[TD="align: center"]Yr7[/TD]
[TD="align: center"]Yr8[/TD]
[TD="align: center"]Yr9[/TD]
[TD="align: center"]Yr10[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[TD="align: center"]$xxxx[/TD]
[/TR]
</tbody>[/TABLE]
have got this to work but is does use lots of columns I was hoping for a simple way to extract the above reports
Regards
Kelvin