+ Reply to Thread
Results 1 to 5 of 5

Max value for every fifth cell in a column.

  1. #1
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Max value for every fifth cell in a column.

    Hi,

    How do I get the MAX for every fifth cell in a column, starting with M5.

    so MAX of M5, M10, M15, M20, M25....... Probably to m2500 or so.

    thanks
    live logic & long prosper

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Max value for every fifth cell in a column.

    Like this?
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Max value for every fifth cell in a column.

    hi stockgoblin, different intepretation, not sure if correct. try this array:
    =MAX(IF(MOD(ROW(M5:M2500),5)=0,M5:M2500))

    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Re: Max value for every fifth cell in a column.

    yes, thanks! Max of every 5th cell, not every 5 cells. Is there any way around an array formula as speed is an issue and my program loops alot?

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Max value for every fifth cell in a column.

    you're welcome. maybe a helper column beside it.
    =IF(MOD(ROW(M5),5),"",M5)

    copy down all the way. then do a MAX of this column. for eg if the formulas are in N5:N2500, then:
    =MAX(N5:N2500)

+ 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