+ Reply to Thread
Results 1 to 5 of 5

Maximum of coherent cells

  1. #1
    Registered User
    Join Date
    12-09-2021
    Location
    Orlando, USA
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    3

    Question Maximum of coherent cells

    Hi all,

    I am running into the following issue. I have one column (52560 cells) which is containing numerical values. The goal is to find the maximum of coherent values (coherent are the values which are separated by zeros). Its always the last of the coherent numbers since the numbers are always starting from 1 counting up to a certain number. I need that max. reoccurring in the cell right next to it.

    If>0 then max. of coherent array else 0 --> the whole things needs to be consecutive dragging down the formula.

    I hope I explained it well enough. It would be great if somebody can help to find me a formula which identifies the maximum.


    Regards,
    Molo


    given result
    0 0
    0 0
    1 7
    2 7
    3 7
    4 7
    5 7
    6 7
    7 7
    0 0
    0 0
    0 0
    1 5
    2 5
    3 5
    4 5
    5 5
    0 0
    0 0

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Maximum of coherent cells

    Try this in B2:

    =IF(A2=0,0,IF(N(B1)>0,B1,MATCH(0,A2:$A$52561,0)-1))

  3. #3
    Registered User
    Join Date
    12-09-2021
    Location
    Orlando, USA
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    3

    Re: Maximum of coherent cells

    Phuocam,

    Thanks a lot for your support. The formula works just fine. To be honest, I thought that problem has to be solved with an array formulat.

    Anyways, thanks again!


    Molo

  4. #4
    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
    80,779

    Re: Maximum of coherent cells

    Administrative Note:

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect: 2109 is a release number but not the actual version. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    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.

  5. #5
    Registered User
    Join Date
    12-09-2021
    Location
    Orlando, USA
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    3
    Thanks for letting me know. Will do the changes as soon as being back at my PC. Looks like I can’t do it via phone.
    Last edited by AliGW; 12-11-2021 at 10:05 AM. Reason: PLEASE don't quote unnecessarily!

+ 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] maximum of cells containing same value in two other columns
    By cdad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2018, 09:08 PM
  2. [SOLVED] Separating Words from a Coherent Text into Cells
    By xnoobx in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2017, 07:31 PM
  3. Replies: 7
    Last Post: 10-07-2015, 03:01 PM
  4. How to take pieces of one column, and turn it into a new coherent column?
    By Daniel86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-23-2014, 10:19 AM
  5. Replies: 3
    Last Post: 10-31-2013, 04:50 AM
  6. Copy contents of one cells and distribute between a maximum of 6 different cells
    By wadapav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-25-2013, 12:23 PM
  7. [SOLVED] Solver Maximum adjustable cells & Problem with Binary cells
    By yael in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2006, 05:30 PM

Tags for this Thread

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