Forum Discussion

Luis Serpa's avatar
Luis Serpa
Copper Contributor
Mar 05, 2022
Solved

Sorting out data from a column

Hi all,

 

I have a very long column (28281 rows) with dates and times (format: dd/mm/yyyy hh;mm). There are no breaks between days, weeks or months: data is continuous. Next two columns are numbers (wind speeds, min. and max). Each day has hourly data, i. e. each day has 24 rows. Data is for three years, with some missing months mainly in the beginning. I would like to:

a) Insert an empty line between each month, in order to calculate averages and medians per month;

b) Delete lines that refer to hours between 20;00 and 08;00 each day. I only need daylight data.

 

Would someone help me finding a formula to do this? I have tried doing it manually, but it is very very long.

Thanks in advance,

Luis Serpa

8 Replies