+ Reply to Thread
Results 1 to 10 of 10

Count columns until condition is met

  1. #1
    Registered User
    Join Date
    10-05-2020
    Location
    Accra, Ghana
    MS-Off Ver
    10
    Posts
    4

    Count columns until condition is met

    Hello all,

    Please help me find a function that will count the number of columns until I reach 100% or higher in each row of data.

    The attached sample data illustrates the output I'd like to see in column B.

    Thank you

    Capture3.JPG

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,211

    Re: Count columns until condition is met

    As an array formula (enter with shift control enter)
    =IFERROR(MATCH(TRUE,(C2:N2>1),0),"not Found")

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Count columns until condition is met

    Try:

    =IFERROR(AGGREGATE(15,6,COLUMN(C2:N2)/(C2:N2>=1),1)-COLUMN($B$1),"NOT FOUND")
    Quang PT

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count columns until condition is met

    Or a regular formula (base in @davsth)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-05-2020
    Location
    Accra, Ghana
    MS-Off Ver
    10
    Posts
    4

    Re: Count columns until condition is met

    Quote Originally Posted by davsth View Post
    As an array formula (enter with shift control enter)
    =IFERROR(MATCH(TRUE,(C2:N2>1),0),"not Found")
    Thank you davsth.

    This worked a charm.

    Much appreciated!
    Last edited by adams_adr; 10-06-2020 at 08:24 AM.

  6. #6
    Registered User
    Join Date
    10-05-2020
    Location
    Accra, Ghana
    MS-Off Ver
    10
    Posts
    4

    Re: Count columns until condition is met

    Thank you bebo021999.

    This formula actually worked!!!

    Thank you so much.
    Attached Images Attached Images
    Last edited by adams_adr; 10-06-2020 at 08:18 AM. Reason: Missing information

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count columns until condition is met

    Hi

    You don't ask that in the opening post. Your topic title doesn't say that.


    =COUNTIF(C2:N2;">=1")

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

    Re: Count columns until condition is met

    Delete the post.
    Last edited by Phuocam; 10-06-2020 at 08:24 AM.

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,211

    Re: Count columns until condition is met

    Blue text is entirely down to the formatting of your own sheet. I just gave you a formula

  10. #10
    Registered User
    Join Date
    10-05-2020
    Location
    Accra, Ghana
    MS-Off Ver
    10
    Posts
    4

    Re: Count columns until condition is met

    Thank you very much.

    It worked!

+ 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. Count in multiple columns if one condition is met in a different column
    By kyknifeman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-15-2020, 04:58 PM
  2. Formula to count columns until condition is met
    By megera716 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-27-2019, 03:23 AM
  3. Replies: 1
    Last Post: 04-03-2019, 12:18 AM
  4. [SOLVED] Count if the sum of columns meet a condition
    By my_sunshine in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 03-09-2015, 12:33 PM
  5. Count Once When Several Columns Combined are Unique & a Condition (Help)
    By RBusiness in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2012, 09:54 AM
  6. Replies: 2
    Last Post: 01-17-2012, 07:48 AM
  7. Count on condition from two columns
    By spqr in forum Excel General
    Replies: 7
    Last Post: 07-07-2009, 10:27 AM

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