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.
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:
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.