Sums from Tables based on accumulation of hours

LeonardH

New Member
Joined
Dec 21, 2013
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone!

I'm trying to automate a big portion of my workload! For background, I've got equipment that accumulates hours over time. The month-to-month accumulation varies and is not a set interval. However, components must be replaced at set hourly intervals.

My intention is to forecast costs per month based on an expected hour accumulation. For example, take the two tables below. Table 1 shows the components, their replacement intervals, and their costs. Table 2 needs to include the formulas to reflect the sum of all costs based on the forecasted equipment hours.

Table 1
Component NameReplacement IntervalComponent Cost
Component 12,000$3,000
Component 23,000$7,000
Component 33,000$8,500
Component 42,500$4,000

Table 2
JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
Accumulated Equipment Hours254328763351382043524762527356946150661872377651
CostSum of $ of 2,500-hour components should land here.Sum of $ of 3,000-hour components should land here.Sum of $ of 2,000-hour component should land here.Sum of $ of 2,500-hour components should land here.Sum of $ of both 2,000-hour and 3,000-hour components should land here.Sum of $ of 2,500-hour components should land here.

Thanks so much for your help! Please let me know if you have any questions!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Give some examples and explain along with the expected results.

I'm not sure I'll explain it any better with this, but based on the costs associated in Table 1, formulas in the "Cost" row of Table 2 would return the values shown below:

Table 1 (Same as original)
A​
B​
C​
1Component NameReplacement IntervalComponent Cost
2Component 12,000$3,000
3Component 23,000$7,000
4Component 33,000$8,500
5Component 42,500$4,000

Table 2
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
N​
1DecemberJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
2Accumulated Equipment Hours1999254328763351382043524762527356946150661872377651
3Cost$7,000$15,500$3,000$4,000$18,500$4,000

In other words:

  • January is showing $7,000 because Components 1 and 4 are expected to be replaced at 2,000 and 2,500 hours respectively. The equipment was only forecasted to achieve the required hours in January, so that is when the components are expected to be replaced, and the sum of those components needs to show.
  • March is showing $15,500 because Components 2 and 3 are both expected to be replaced at 3,000 hours. The equipment wasn't forecasted to achieve 3,000 hours until March, so that's when the sum of those components needs to show.
  • May is showing $3,000 because Component 1 is forecasted to achieve its second 2,000-hour interval (4,000 hours). So, the sum of components meeting that interval criteria (in this case only Component 1) is returned.
  • July is showing $4,000 because Component 4 is forecasted to achieve its second 2,500-hour interval (5,000 hours). So, the sum of components meeting that interval criteria (in this case only Component 4) is returned.
  • September is showing $18,500 because Component 1 is forecasted to achieve its third 2,000-hour interval (6,000 hours) and Components 2 and 3 are forecasted to achieve their second 3,000-hour interval (6,000 hours). So the sum of all those components is returned.
  • December is showing $4,000 because Component 4 is forecasted to achieve its third 2,500-hour interval (7,500 hours). So, the sum of that component (or others that could potentially have met their interval criteria that month) is returned.
Ideally, only the cells in the Cost row of Table 2 should include formulas.

I hope this helps to clarify! Please let me know if there are any other questions!
 
Upvote 0
Try:
Book1
ABCDEFGHIJKLM
1Component NameReplacement IntervalComponent Cost
2Component 12000$ 3,000
3Component 23000$ 7,000
4Component 33000$ 8,500
5Component 42500$ 4,000
6
7JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
8Accumulated Equipment Hours2,5432,8763,3513,8204,3524,7625,2735,6946,1506,6187,2377,651
9Cost$ 7,000$ -$ 15,500$ -$ 3,000$ -$ 4,000$ -$ 18,500$ -$ -$ 4,000
Sheet4
Cell Formulas
RangeFormula
B9:M9B9=SUMPRODUCT(QUOTIENT(B8,+$B$2:$B$5),$C$2:$C$5)-SUM($A$9:A9)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,629
Messages
6,173,446
Members
452,514
Latest member
cjkelly15

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