Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

How to extract the values from two consecutive rows

$
0
0

Hi,

 

I have measurements of an equipment that produces tablets. The operator logs the value that the machine shows every 15 minutes. This value shows how many tablets were produced from the last reset.

I would like to see how many tablets were produced between two consecutive measurements.

 

My data looks like this:

 

Date&Time Measurement

 

Date&TimeMeasurement
01/06/2016 06:000
01/06/2016 06:3012000
01/06/2016 07:0022000
01/06/2016 07:3030000
01/06/2016 08:0044000
01/06/2016 08:3058000
01/06/2016 09:0072000
01/06/2016 09:3080000
01/06/2016 10:00102000

 

I would need to add a new column that shows every 30 minutes how many tablets were produced. My table should be like this:

 

Date&TimeMeasurementTablets produced between two measurements
01/06/2016 06:0000
01/06/2016 06:301200012000
01/06/2016 07:002200010000
01/06/2016 07:30300008000
01/06/2016 08:004400014000
01/06/2016 08:305800014000
01/06/2016 09:007200014000
01/06/2016 09:30800008000
01/06/2016 10:0010200022000

 

Thank you for the help.

Nandor


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>