Replicating numbers instead of cascade

labart

New Member
Joined
Sep 4, 2015
Messages
14
I'm in the process of setting up a model based on a simple p&L centre. The idea is to model out one centre (something like a franchise store) and each time we open another store it starts at the beginning of the model. I could do a cascade (as illustrated below) but that is not very elegant and rather unwieldy as I'm looking on adding quite a few P&L lines.

I was hoping that there was some sort of array that I could use?


year 1year 2year 3year 4year 5year 6year...
Profits51719202527
Opens
Centre 1year 151719202527
Centre 2year 35171920
Centre 3year5517
Centre 4year65
Centre ...99

<tbody>
</tbody>

Any ideas?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
To clarify I have simplified the example above. Please help!

What I'm looking for is a way of eliminating the cascade.

year 1year 2year 3year 4year 5
Profits517192025
Opens
Centre 1year 1517192025
Centre 2year 351719
Centre 3year55
Centre 4year5
5​
Total517243754

<tbody>
</tbody>



What I'm looking for is an formula that skips the waterfall step and totals it. The actual number of stores is in the hundreds and there are quite a few P&L lines therefore making a cascade very cumbersome.

I was thinking of a some sort of sum product array, but I can't seem to get it.

Thanks in advance for your help.
 
Last edited:
Upvote 0
Here is one of my unsuccessful trials. I used the formula =SUMPRODUCT(D16:D22*OFFSET($D$2,,IF(D$1<$B5,-1,D$1-$B5))) -- It works for the first two stores, but it goes wrong after once a store with a different start date is added...

I've added both the cascade and the sumproduct equation to show that it does not work.

A1
B
C
D
E
F
G
H
I
J
K
L
2











3



1
2
3
4
5
6
7
8
4

P&L

5
34
435
32466
7254
4357
4536
43
5











6
Store
year Start

OFFSET($D$2,,IF(D$1<$B5,-1,D$1-$B5))




7
1
1

5
34
435
32466
7254
4357
4536
43
8
2
1

5
34
435
32466
7254
4357
4536
43
9
3
3

5
34
435
32466
7254
4357
10
4
4

5
34
435
32466
7254
11
5
5

5
34
435
32466
12
6
5

5
34
435
32466
13
7
7

5
34
14











15

Total
10
68
875
64971
14987
41683
49667
76663
16











17
Store
year Start

SumProduct Trial






18
1
1

1
1
1
1
1
1
1
1
19
2
1

1
1
1
1
1
1
1
1
20
3
3

1
1
1
1
1
1
21
4
4

1
1
1
1
1
22
5
5

1
1
1
1
23
6
5

1
1
1
1
24
7
8

1
25











26



SUMPRODUCT(D16:D22*OFFSET($D$2,,IF(D$1<$B5,-1,D$1-$B5)))


27

Total
10
68
1305
129864
43524
26142
27216
301

<tbody>
</tbody>


:confused::confused:
 
Last edited:
Upvote 0
Sorry, I just noticed that I did not update the texted equation when I added the row and columns. Hence the equation should read: "=SUMPRODUCT(E18:E24*OFFSET($E$4,,IF(E$3<$C7,-1,E$3-$C7)))"
 
Upvote 0
It's not clear (to me at least) exactly what you want, which of your examples shows what you are trying to achieve?
 
Upvote 0
It's not clear (to me at least) exactly what you want, which of your examples shows what you are trying to achieve?

I'm new at posting. Apologies, if I wasn't clear. Let me try again.

I have quite a large P&L that is a master store. We are planning on opening new stores over time. Each new store will have the same P&L as the master store but starting on a different date. There may be hundreds of stores over time.

In the cascade above I was able to do this. But with hundreds of stores and numerous P&L lines the sheet becomes quite unwieldy. The toggle for the sum product was a way for me to do this (there might be a better way). I wouldn't mind having one cascade, or key, but would like to avoid having to do the same thing for every P&L line.

Hope that is clearer.

Thanks,
 
Upvote 0
It would help if you post an example of the results you want, not what isn't working.
 
Upvote 0
It would help if you post an example of the results you want, not what isn't working.

What I'm after is the Total in Row 15.

What I'm trying to avoid is having to do a full cascade for every P&L line...

Thanks for your help
 
Last edited:
Upvote 0
Thanks for the hint on using HTML Maker. Much easier than copying and pasting text.

Here is my example again. What I'm after is a one line equation that replicates d5:d11 and d13. But all in one equation.

Thanks,




Excel 2012


Excel 2012
ABCDEFGHIJK
1year12345678
2P&L5344353246672544357453643
3Cascade Trial
4Storeyear Start
5115344353246672544357453643
6215344353246672544357453643
733005344353246672544357
844000534435324667254
955000053443532466
1065000053443532466
1177000000534
12
13Total10688756497114987416834966776663
14Not working
15Storeyear Start
161111111111
172111111111
183300111111
194400011111
205500001111
216500001111
227800000001
23
24
25Total10681305129864435242614227216301
Sheet1
Cell Formulas
RangeFormula
D5=OFFSET($D$2,,IF(D$1<$B5,-1,D$1-$B5))
D13=SUM(D5:D11)
D16=IF(D$1>=$B16,1,0)
D25=SUMPRODUCT(D16:D22*OFFSET($D$2,,IF(D$1<$B5,-1,D$1-$B5)))
 
Upvote 0
So it would look like this?

Code:
[TABLE="width: 715"]
<tbody>[TR]
[TD]year[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]P&L[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]435[/TD]
[TD="align: right"]32466[/TD]
[TD="align: right"]7254[/TD]
[TD="align: right"]4357[/TD]
[TD="align: right"]4536[/TD]
[TD="align: right"]43[/TD]
[/TR]
[TR]
[TD="colspan: 2"]Cascade Trial[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store[/TD]
[TD]year Start[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD="align: right"]49130[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD="align: right"]49130[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]3[/TD]
[TD][/TD]
[TD="align: right"]44551[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[TD="align: right"]40194[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD="align: right"]32940[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD="align: right"]32940[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]7[/TD]
[TD][/TD]
[TD="align: right"]39[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Total[/TD]
[TD][/TD]
[TD="align: right"]248924[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,168
Members
448,870
Latest member
max_pedreira

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