+ Reply to Thread
Results 1 to 4 of 4

Find Consecutive Columns With Value

  1. #1
    Registered User
    Join Date
    07-28-2016
    Location
    Nashville, TN
    MS-Off Ver
    Microsoft for MAC 2011
    Posts
    7

    Find Consecutive Columns With Value

    Hi all,

    I browsed through the forum but couldn't find this one. Looking to find the longest "streak" of each row. In other words, the number of consecutive columns in the same row that have a value. For example

    Row 1: Column A- [blank] / Column B- [number] / Column C- [number] / Column D- [number] / Column E- [blank]

    So streak equals 3

    Appreciate it!

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: Find Consecutive Columns With Value

    are you still using MAC 2011?
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Find Consecutive Columns With Value

    This should work for you:

    =MAX(FREQUENCY(IF(A1:E1<>"",COLUMN(A1:E1)),IF(A1:E1<>"",0,COLUMN(A1:E1))))

    If you're using Office 2011 for Mac, I think you'd need to use CTRL+SHIFT+ENTER to confirm, rather than just ENTER. (Newer versions of Office don't require CSE for array formulas.)

    (Example seen here: https://exceljet.net/formula/longest-winning-streak)

  4. #4
    Registered User
    Join Date
    07-28-2016
    Location
    Nashville, TN
    MS-Off Ver
    Microsoft for MAC 2011
    Posts
    7

    Re: Find Consecutive Columns With Value

    Thank you Paul, worked like a charm. And yes, I need to update the version. I'm on a 365 subscription now!

+ 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. Find some with consecutive days
    By wee-wee in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-26-2022, 04:00 PM
  2. [SOLVED] How can I find Max value of per consecutive data
    By mvatan in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-31-2021, 02:56 AM
  3. [SOLVED] UDF to Find Consecutive X Occurances of Y
    By Portland in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-08-2017, 10:33 AM
  4. [SOLVED] Help me find 3 consecutive failures
    By hardt2788 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-31-2014, 03:39 PM
  5. Replies: 2
    Last Post: 07-08-2014, 08:53 AM
  6. Find consecutive dates by same name...
    By SamCrome in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-20-2013, 08:41 AM
  7. Find 4 consecutive occurrences
    By swatsp0p in forum Excel General
    Replies: 8
    Last Post: 03-27-2010, 01:55 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