Sum particular rows of data

davyj93

New Member
Joined
Apr 14, 2017
Messages
14
Hi all,

I would like to be able to sum particular rows of data. In my first table below I have 2 columns of data. In the second table I would like to be able to enter a particular time range (e.g. 20 - 40 mins) and use a formula to get the sum of energy within this time range. What formula would I have to use to get the sum? The formula would needs to be able to only use specific rows of data.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Time[/TD]
[TD="align: center"]Energy[/TD]
[/TR]
[TR]
[TD="align: center"](min)[/TD]
[TD="align: center"](kJ)[/TD]
[/TR]
[TR]
[TD="align: center"]0
[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]50[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]150[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD="align: center"]200[/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD="align: center"]260[/TD]
[/TR]
[TR]
[TD="align: center"]30[/TD]
[TD="align: center"]280[/TD]
[/TR]
[TR]
[TD="align: center"]40[/TD]
[TD="align: center"]290[/TD]
[/TR]
[TR]
[TD="align: center"]50[/TD]
[TD="align: center"]350[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Time Lower Limit[/TD]
[TD="align: center"]Time Upper limit[/TD]
[TD="align: center"]Sum of Energy in Range[/TD]
[/TR]
[TR]
[TD="align: center"](min)[/TD]
[TD="align: center"](min)[/TD]
[TD="align: center"](kJ)[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD="align: center"]40[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thanks,
David
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Pasting your first table into A1 then the result table into D1 try this in F3:

=SUMIFS($B$3:$B$10,$A$3:$A$10,">="&D3,$A$3:$A$10,"<="&E3)
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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