+ Reply to Thread
Results 1 to 7 of 7

calculate maximum value every nth rows

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2010
    Posts
    4

    calculate maximum value every nth rows

    Hi,
    Do anyone can tell me how to calculate maximum value every 100th rows and retrive that value in a new sheet?
    Thanks
    Mbranco

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,792

    Re: calculate maximum value every nth rows

    Which column(s) will the numbers be in on Sheet1?

    Pete

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: calculate maximum value every nth rows

    The data is in D column.
    Thanks

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,792

    Re: calculate maximum value every nth rows

    Here's one way - put this formula in Sheet2:

    =MAX(INDIRECT("Sheet1!D"&(ROW(A1)-1)*100+1&":D"&ROW(A1)*100))

    then copy down. It will give you the max for rows 1-100, then 101-200, then 201-300 etc.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    09-10-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: calculate maximum value every nth rows

    OK, Thanks,
    But it work also in a macro?
    MBranco

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,792

    Re: calculate maximum value every nth rows

    It's a formula - you don't need a macro.

    Pete

  7. #7
    Registered User
    Join Date
    09-10-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: calculate maximum value every nth rows

    Ok. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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