Light bulbs replacement : formula

Greg_76

New Member
Joined
Jul 18, 2012
Messages
5
Hello everyone,

This is a very practical exercise that I am trying to do since a little while but without any success.

I defined 2 informations for light bulbs :
- The 1st time it is likely to burn and be replaced : For example after 2.5 years or after 0.3 year
- The life time of a bulb : For example : 4.5 years or 0.4 years

I would like to define for each coming year how many times the bulb will be replaced : 0, 1, 2, 3, ... times.

So I expect something like this :

1st replacementLife timeYear 1Year 2Year 3Year 4...
2.54.50010...
0.30.42323...

<tbody>
</tbody>


The question is what formula can I use to calculate the values in Year 1, Year 2, etc ?

Many thanks in advance for your help !

Best regards from Brussels.

Gregory
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Can you explain the difference between the two numbers? Isn't the lifetime of a bulb the amount of time until it burns out?
 
Upvote 0
Hello Ben,

The first number is taking into account the fact that the lamp may be already burning since a long time so it can burn out soon. It is the time it will take for the next burn out, starting from now. This is usually smaller than the life time, but can be equal if you just replaced the lamp.

So when you know you have a brand new lamp, this value is the same as the life time. But if you are doing this for 1000 lamps, some of them will burn very soon, and some other much later.

At the end, I am calculating the cost and payback time of installing new lamps. When the first value is totally unknown, I simply assume it is 1/2 of the life time, as an average. But if I know that all the lamps were recently changed, I would take a bigger value.

This can also help making tests like "what if all the lamps burn out next month ?" and "what if 95% of the lamps are still good in 2 years ?"

I hope this answer your question.

Best regards,

Gregory
 
Upvote 0
Ok, I got the first part.

With your Lifetime in column B (starting from B2) and your years numbers in row 1 starting at C1, here's a formula:

In C2 (and drag down):

=ROUNDDOWN(COLUMN(A1)/$B2,0)

In D2 (and drag down and across):

=ROUNDDOWN(COLUMN(B1)/$B2,0)-SUM($C2:C2)

This is for the Lifetime numbers. Still trying to work out how to first incorporate the 1st replacement amount into it...
 
Upvote 0
I had this part as well. Indeed the 1st replacement makes it complicated.

If I had to calculate it only for one lamp, this is how I would proceede :

Repl = 0,1,2,3,4,...
PeriodRepl = $A$4+A7*$B$4
YearRepl = ROUNDUP(B7,0)
Year = 1,2,3,4,... (here the values in row 2 could be used)
Result = COUNTIF($C$7:$C$27,D8)

Here the array YearRepl has only 20 values and as you can see, after 8 years the results are missing.
I tested it for the worst lamps that we can have and figured out that the array YearRepl should idealy have 200 values to have at least 20 years calculated correctly in all possible cases.

The first two formulas can be combined = ROUNDUP($A$4+A7*$B$4,0)
The question is how we can combine this with the COUNTIF formula ?
Would there be a solution with a GETPIVOTDATA formula maybe ?

Thanks again for your help !
ABCDEFG
11st replacementLife timeYear 1Year 2Year 3Year 4...
2 1234
32.54.50010...
40.30.42323...
5
6ReplPeriodReplYearReplYearResult
700.31
810.7112
921.1223
1031.5232
1141.9243
1252.3352
1362.7363
1473.1472
1583.5483
1693.9491
17104.35100
18114.75110
19125.16120
20135.56130
21145.96140
22156.37150
23166.77160
24177.18170
25187.58180
26197.98190
27208.39200

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL span=5></COLGROUP>
 
Upvote 0
Hello,
I haven't found an answer yet so if someone has any idea it will be greatly appreciated !
Many thanks
Gregory
 
Upvote 0
See if this calculates the first part of your problem

Drag D2 Across for as many years as you need, then Down as required.
Drag T2 Down to match.

Excel Workbook
ABCDEFGHIJKLMNOPQRST
11st replacementLife timeLeaveColumn C blankYear 1Year 2Year 3Year 4Year 5Year 6Year 7Year 8Year 9Year 10Year 11Year 12Year 13Year 14Year 15Year 16Totals
22.54.500100010000100014
30.30.4232323232323232340
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,871
Members
449,055
Latest member
excelhelp12345

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