+ Reply to Thread
Results 1 to 4 of 4

Sum/count until a certain value is reached

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    abu dhabi
    MS-Off Ver
    Excel 2010
    Posts
    28

    Sum/count until a certain value is reached

    I have got a set of data for which i need to count/sum for the below example

    cell A1 to A10 contains values; 1 1 1 1 1 0 0 1 1 0
    Now i need to sum/count the values of the range until it reaches the first 0 (zero). Here it would give 5

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Sum/count until a certain value is reached

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

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    abu dhabi
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Sum/count until a certain value is reached

    Perfect !!....thanx

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Sum/count until a certain value is reached

    Or

    =SUM(A1:INDEX(A1:A10,MATCH(0,A1:A10,0)-1))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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] Count Columns Until Value Reached
    By phelbin in forum Excel General
    Replies: 7
    Last Post: 08-02-2021, 10:18 AM
  2. Count until Sum Value is reached
    By SpaceRocksMars in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2014, 02:43 PM
  3. [SOLVED] Fill down a row count until a new value is reached?
    By TBrun in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-28-2013, 10:37 AM
  4. Delete duplicates after count reached?
    By mpkavanagh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-22-2011, 08:01 PM
  5. Count until certain percentage reached
    By kirby3820 in forum Excel General
    Replies: 2
    Last Post: 02-22-2011, 01:28 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