简体   繁体   中英

Excel trouble - how to transfer 15 min data to 10 min data

I have a big Excel sheet with data taken from the sensors from one windfarm.

It is in one column, one below the other, just a clean numbers, integer (example 1435). Those columns represent data from every 15 minutes.

I need to get the data from it and transform it to 10 min data.

My idea was to divide it by 3 (get 5 min data) and just add two of those.

But I need the formula in excel which does that in the other column.

  • So takes the first column
  • divide it by 3,
  • put it in the column next to it,
  • copy it in 2 more rows below
  • then repeat the procedure but with the other value in the 15 min data, below the first one.

I hope it makes sense, much appreciated for any assistance

This is not a code writing service, but just create some simple loops.

Sub tenmindata()

Dim lastRow As Integer

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

lastRow = Range("A" & Rows.Count).End(xlUp).Row
j = 3
For i = 3 To lastRow
    For k = 1 To 3
        Cells(j, 7) = Cells(i, 3).Value / 3
        j = j + 1
    Next k
Next i

Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic

End Sub

Not sure if I got your question right but try this:

=A1/3*2

Post that in the column next to your data and doubleclick the small black dot:

https://abload.de/img/excelbwbzz.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM