Hi,
You could use the Sample object in Lookout, this object keeps an array of the last 35 samples. The way it works is the following, every time a datamember goes high the object acquires a new value and discards the last value of the array.
Now as you need to store the last 15 min of data, you need to find out what is the frequency at which your data is being sampled from wherever you are getting this data from. If your sample frequency is such that 35 elements in the array is not enough to accomodate it, you can make a chain of Sample Objects and get as many samples in the "buffer" as you need, you can accomplish that by just writting the last sample of one object to the first element of the next Sample Object.
Now, in order to log the data accordingly
to the Spreadsheet file I would use DDE connection, that simplifies the application and updates the data as it changes.
I hope it helps
Regards
Andre Oliveira