Excel smoothing formula

eddster

New Member
Joined
Oct 11, 2017
Messages
25


Hi, I wonder if anybody could assist me in a smoothingformula I am struggling with,


In this scenario I wish to take the replacementvalue/period of an item based on several inputs and in some instances smooththe resulting smooth the output over either 3,5,7 periods equally eachside of the period that the item would be due

example below

The top table is a working version i.e. I have the necessary formulas togive the required output in columns H - AK however in this version no form ofsmoothing is being applied



In the 2nd table I have added in a smoothingvalue and hardcoded the result as I would expect to see them IF I had the formula ?





The formula I am currently using for cell J6 in the toptable is


=(IF($C6="",0,IF(AND($D6="N/A",$C6=J$2),$G6,IFERROR(IF($C6>J$2,0,((MOD(J$2-$C6,$D6)=0)*$G6)),0))))= £4000


I need the formulas that will give the desire £1333.33output in J6 on the bottom table and spread the costs either side accordingly


A1
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
AA
AB
AC
AD
AE
AF
AG
AH
AI
AJ
AK
AL
2
Items
1st replacement period
frequency
quantity
cost
Total cost per replacement cycle
smoothing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
3
pencils
1
1
1000
0.1
100
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
4
erasers
4
N/A
400
1
400
0.00
0.00
0.00
400.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
5
books
2
4
50
10
500
0.00
500.00
0.00
0.00
0.00
500.00
0.00
0.00
0.00
500.00
0.00
0.00
0.00
500.00
0.00
0.00
0.00
500.00
0.00
0.00
0.00
500.00
0.00
0.00
0.00
500.00
0.00
0.00
0.00
500.00
6
cupboard
2
10
10
400
4000
0.00
4000.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
4000.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
4000.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
7
table
3
15
10
150
1500
0.00
0.00
1500.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
1500.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
8
9
10
11
Items
1st replacement period
frequency
quantity
cost
Total cost per replacement cycle
smoothing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
12
pencils
1
1
1000
0.1
100
1
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
13
erasers

4
N/A
400
1
400
3
0.00
0.00
133.33
133.33
133.33
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
14
books
2
4
50
10
500
3
166.67
166.67
166.67
0.00
166.67
166.67
166.67
0.00
166.67
166.67
166.67
0.00
166.67
166.67
166.67
0.00
166.67
166.67
166.67
0.00
166.67
166.67
166.67
0.00
166.67
166.67
166.67
0.00
166.67
166.67
15
cupboard
2
10
10
400
4000
3
1333.33
1333.33
1333.33
0.00
0.00
0.00
0.00
0.00
0.00
0.00
1333.33
1333.33
1333.33
0.00
0.00
0.00
0.00
0.00
0.00
0.00
1333.33
1333.33
1333.33
0.00
0.00
0.00
0.00
0.00
0.00
0.00
16
table
3
15
10
150
1500
7
214.29
214.29
214.29
214.29
214.29
214.29
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
214.29
214.29
214.29
214.29
214.29
214.29
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
214.29
214.29

<tbody>
</tbody>



 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try:

r><
td style="text-align: right;background-color: #FAFAFA ;;">166.6667
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKAL
AM
1
2Items1st replacement periodfrequencyquantitycostTot
al cost per replacement cycle
smoothing123456789101112131415161718192021222324252627282930
3pencils1110000.11001100100100100100100100100100100100100100100100100100100100100100100100100100100100100100
4erasers410004001400300133.333333133.3333133.33330000000000000000000000000
5books2450105003166.666667166.6667166.6666670166.6667166.6667166.66670166.6667166.6667166.66670166.6667166.6667166.66670166.6667166.6667166.66670166.6667166.6667166.66670166.6667166.6667166.66670166.6667
6cupboard21010400400031333.333331333.3331333.333330000001333.3331333.3331333.33300000001333.3331333.3331333.3330000000
7table3151015015007214.285714214.2857214.285714214.2857214.2857214.285700000000214.2857214.2857214.2857214.2857214.2857214.2857214.285700000000214.2857

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
<td sty
le="text-align: right;;"></td>
<td sty
le="text-align: right;background-color: #FAFAFA ;;">100</td>
<td st
yle="text-align: right;background-color: #FAFAFA ;;">0</td>
</tbody>
Sheet1

Worksheet Formulashead>
CellFormula
I3=IF(OR(MOD(I$2-$C3,$D3)<=$H3/2,MOD(I$2-$C3,$D3)>=$D3-$H3/2),$G3/$H3,0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Note that I replace the N/A in D4 with 1000 (or any really large number). Sorry about the formatting.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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