working towards resampling spreadsheet