Hi guys,
I am trying to calculate the area under the curve on my Power-Time graph so that I can determine the energy.
Would anyone have an idea of how I can calculate the area under the curve? The solution would also have to ignore cells with #N/A. Would I also be able to choose a specific time range for this area?
Shown below is a very small sample of my data:
[TABLE="class: grid, width: 307"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]Time[/TD]
[TD="align: center"]Engine Power[/TD]
[/TR]
[TR]
[TD="align: center"](min)[/TD]
[TD="align: center"](kW)[/TD]
[/TR]
[TR]
[TD="align: center"]0.000000[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.000383[/TD]
[TD="align: center"]4.04[/TD]
[/TR]
[TR]
[TD="align: center"]0.001017[/TD]
[TD="align: center"]4.12[/TD]
[/TR]
[TR]
[TD="align: center"]0.001033[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.001700[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.001717[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.002350[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.002383[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.003067[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.003083[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.003917[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.003933[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.004433[/TD]
[TD="align: center"]4.13[/TD]
[/TR]
[TR]
[TD="align: center"]0.004967[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.004983[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.005517[/TD]
[TD="align: center"]4.06[/TD]
[/TR]
[TR]
[TD="align: center"]0.005533[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.005933[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.005950[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.006483[/TD]
[TD="align: center"]4.02[/TD]
[/TR]
[TR]
[TD="align: center"]0.006967[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.006983[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.007433[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.007450[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.007967[/TD]
[TD="align: center"]4.05[/TD]
[/TR]
[TR]
[TD="align: center"]0.008500[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.008933[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.008950[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.009417[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.009433[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.009917[/TD]
[TD="align: center"]4.05[/TD]
[/TR]
[TR]
[TD="align: center"]0.009933[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.010550[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.010567[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.011250[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.011267[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.01[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.01[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.01[/TD]
[TD="align: center"]4.01[/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
David
I am trying to calculate the area under the curve on my Power-Time graph so that I can determine the energy.
Would anyone have an idea of how I can calculate the area under the curve? The solution would also have to ignore cells with #N/A. Would I also be able to choose a specific time range for this area?
Shown below is a very small sample of my data:
[TABLE="class: grid, width: 307"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]Time[/TD]
[TD="align: center"]Engine Power[/TD]
[/TR]
[TR]
[TD="align: center"](min)[/TD]
[TD="align: center"](kW)[/TD]
[/TR]
[TR]
[TD="align: center"]0.000000[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.000383[/TD]
[TD="align: center"]4.04[/TD]
[/TR]
[TR]
[TD="align: center"]0.001017[/TD]
[TD="align: center"]4.12[/TD]
[/TR]
[TR]
[TD="align: center"]0.001033[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.001700[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.001717[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.002350[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.002383[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.003067[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.003083[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.003917[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.003933[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.004433[/TD]
[TD="align: center"]4.13[/TD]
[/TR]
[TR]
[TD="align: center"]0.004967[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.004983[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.005517[/TD]
[TD="align: center"]4.06[/TD]
[/TR]
[TR]
[TD="align: center"]0.005533[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.005933[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.005950[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.006483[/TD]
[TD="align: center"]4.02[/TD]
[/TR]
[TR]
[TD="align: center"]0.006967[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.006983[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.007433[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.007450[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.007967[/TD]
[TD="align: center"]4.05[/TD]
[/TR]
[TR]
[TD="align: center"]0.008500[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.008933[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.008950[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.009417[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.009433[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.009917[/TD]
[TD="align: center"]4.05[/TD]
[/TR]
[TR]
[TD="align: center"]0.009933[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.010550[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.010567[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.011250[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.011267[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.01[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]0.01[/TD]
[TD="align: center"]4.09[/TD]
[/TR]
[TR]
[TD="align: center"]0.01[/TD]
[TD="align: center"]4.01[/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
David