+ Reply to Thread
Results 1 to 3 of 3

Ignoring blanks when determing longest run

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    260

    Ignoring blanks when determing longest run

    Yesterday I posted a question on how to determine the longest run of any one digit in a row of figures.
    Many responses gave me the desired outcome.
    I have since discovered that there may be a gap in my row of data, which I would like to ignore completely.
    With the attachment I have included one of the solutions given to me, and was wondering if I can somehow include 'ignore blank' cell and continue to count if that happens.
    So in the example the number occurring mostly in a row is 8 and the number of times is actually 6 if I could ignore the blank.
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Ignoring blanks when determing longest run

    with helper columns
    =MAX(FREQUENCY(IF(V3:AK3=W3:AL3,COLUMN(V3:AK3)),IF(V3:AK3<>W3:AL3,COLUMN(V3:AK3))))+1
    Attached Files Attached Files

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Ignoring blanks when determing longest run

    Try array entering this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    1
    2
    Round
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    No.
    Seq.
    Max Seq 8
    3
    1995
    5
    8
    8
    8
    8
    8
    8
    5
    5
    5
    5
    7
    6
    7
    8
    8
    5
    6
    Dave

+ 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. BLANKS (Not Really Blanks) AND Rearrange ignoring blanks
    By shivspatil in forum Excel General
    Replies: 4
    Last Post: 02-02-2018, 08:28 AM
  2. [SOLVED] Data Cleanup - ignoring blanks, ignoring rows with string values etc.
    By Huyaku in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 08:17 AM
  3. [SOLVED] Ignoring blanks (again)
    By jswainson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-12-2012, 07:47 AM
  4. [SOLVED] Ignoring blanks
    By jswainson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-30-2012, 10:28 AM
  5. [SOLVED] Ignoring blanks
    By jswainson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2012, 02:44 PM
  6. [SOLVED] Ignoring blanks
    By jswainson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-09-2012, 02:14 PM
  7. Ignoring blanks
    By exsam21 in forum Excel General
    Replies: 2
    Last Post: 01-18-2006, 01:25 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