+ Reply to Thread
Results 1 to 10 of 10

Dragging formula down one row, but jumping more than one row data reference

  1. #1
    Registered User
    Join Date
    07-12-2020
    Location
    Tel Aviv
    MS-Off Ver
    version 16.38
    Posts
    4

    Dragging formula down one row, but jumping more than one row data reference

    Hi all,

    I guess you gonna resolved this newbie issue in few lines...

    I have a dataset of 4320 rows for 17 columns.
    Each row is a minute. I want to average my data per hour.
    If I do Average formula which encompass 60 rows, for the first hour it works. But then if I drag the formula down one row it will give me the average of the data +1min, not +60min

    How can I adapt any formula to jump over 60rows each time I drag the formula down one row.

    Thank a lot, it gonna be more than helpful

    Raph

    ps: I add an excel with one of the column and the corresponding averaging I need
    Attached Files Attached Files
    Last edited by Cnidoraph; 07-12-2020 at 10:54 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Dragging formula down one row, but jumping more than one row data reference

    Use a pivot table and group it by date and time. Or just read the yellow banner at the top.

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Dragging formula down one row, but jumping more than one row data reference

    Please try

    E2
    =IFERROR(SUMIFS(B:B,A:A,">="&D2,A:A,"<"&D2+TIME(1,0,0))/COUNTIFS(A:A,">="&D2,A:A,"<"&D2+TIME(1,0,0)),"")


    Regards.


    Seem my formula is not what you want, sorry.
    Last edited by menem; 07-13-2020 at 02:18 AM. Reason: Add note

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Dragging formula down one row, but jumping more than one row data reference

    Please try again

    E2
    =AVERAGE(OFFSET($B$1,(ROWS(D$1:D1)-1)*60+1,0,60))


    Regards.

  5. #5
    Registered User
    Join Date
    07-12-2020
    Location
    Tel Aviv
    MS-Off Ver
    version 16.38
    Posts
    4

    Re: Dragging formula down one row, but jumping more than one row data reference

    Thank a lot for your help !
    But when I use the last formula: E2

    =AVERAGE(OFFSET($B$1,(ROWS(D$1:D1)-1)*60+1,0,60))

    excel open an Error message.

    Do I miss something?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,234

    Re: Dragging formula down one row, but jumping more than one row data reference

    What error message?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    07-12-2020
    Location
    Tel Aviv
    MS-Off Ver
    version 16.38
    Posts
    4

    Re: Dragging formula down one row, but jumping more than one row data reference

    "Formula error" without saying anything more

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,234

    Re: Dragging formula down one row, but jumping more than one row data reference

    No - that's not possible. Excel error pop-ups are all more detailed than this. Are you using Excel or something else for this?

  9. #9
    Registered User
    Join Date
    07-12-2020
    Location
    Tel Aviv
    MS-Off Ver
    version 16.38
    Posts
    4

    Re: Dragging formula down one row, but jumping more than one row data reference

    It works ! It was just a matter of language compatibility...

    Great, thank a lot :D

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,234

    Re: Dragging formula down one row, but jumping more than one row data reference

    You may find this useful: https://en.excel-translator.de/translator/

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Dragging formula should reference to another worksheet
    By marckaljonp in forum Excel General
    Replies: 4
    Last Post: 10-30-2016, 09:09 AM
  2. Replies: 4
    Last Post: 08-22-2013, 07:31 AM
  3. Dragging formula (cell reference) across columns
    By theraindew in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2013, 01:51 PM
  4. Dragging formula, change sheet reference, but not cell reference
    By Kalilaya0419 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2013, 04:50 PM
  5. Replies: 5
    Last Post: 09-21-2012, 02:08 PM
  6. Dragging down formula and cell reference
    By JDCONNER in forum Excel General
    Replies: 4
    Last Post: 09-30-2011, 05:05 PM
  7. [SOLVED] wrong reference after dragging down a formula
    By Bram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1