+ Reply to Thread
Results 1 to 3 of 3

Help with ''1'' problem

  1. #1
    Registered User
    Join Date
    08-28-2021
    Location
    london
    MS-Off Ver
    xp , 2000
    Posts
    13

    Help with ''1'' problem

    Hello !

    I need help with a problem.
    I attached a excel fille.


    The A Column consists of either ''1'' cells , or blank cells.
    At the bottom there is a yellow cell.
    I need a formula in the yellow cell that would tell me the maximum number of instances of solitary 1 cells before the number 1 appears either in a group of 2 , or 3 , or 4 or more cells.
    For instance , in the example i provided , the result in the yellow cell should be 5.

    Thank you.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Help with ''1'' problem

    Here is a solution using a helper column. (There might be a single-formula solution without a helper column.)

    I would really suggest that you consider upgrading to a newer version of Excel. There have been so many changes in the last 22 years that it will be difficult to get solutions from people that will still work in that version.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: Help with ''1'' problem

    If the first and last cells are empty, you can use an array formula:

    =MAX(FREQUENCY(IF((A1:A44="")*(A2:A45=1)*(A3:A46=""),ROW(A2:$A45)),IF((A2:A45=1)*(A3:A46=1),ROW(A2:A45))))

    .
    Attached Files Attached Files

+ 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. Replies: 6
    Last Post: 07-01-2018, 01:58 PM
  2. [SOLVED] Excel Macro - Copy & Paste (Font) problem & Delete Last Added Rows problem
    By LennartB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2015, 06:58 AM
  3. Replies: 6
    Last Post: 10-20-2013, 07:16 PM
  4. input box problem, cell filtering problem, result display while locking sheet
    By croozin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2013, 08:52 AM
  5. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  6. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  7. Started out as an Access problem. Now an Excel problem
    By RobertM in forum Excel General
    Replies: 2
    Last Post: 04-26-2006, 02:35 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