+ Reply to Thread
Results 1 to 5 of 5

Sum and count until a determined value

  1. #1
    Registered User
    Join Date
    05-12-2020
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    15

    Sum and count until a determined value

    Hi Guys,

    Does anyone know how to help me with this situation:

    I need to sum a column until the sum based on two conditions.
    At file attached I need sum the column C if column B is equal "Tipo A" and until reach the sum 8000 at column E.


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Sum and count until a determined value

    More details needed.

    There are 5 records in B2:E11 for Tipo A. The last one in row 11 exceeds 8,000 all on its own, and the other 4 combined total 5,268.04 (rounded). No way to reach 8,000.

  3. #3
    Registered User
    Join Date
    05-12-2020
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    15

    Re: Sum and count until a determined value

    Yes, I know that...

    Let me try to explain better, Tipo A doesn't reach 8000 until row 11 ok? So the formula will sum column C until row 11, the result is 8.

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Sum and count until a determined value

    This attempt gets the expected answer for your example, but I'm not sure that the solution is going to be readily extensible to your real needs.

    HFGurgel13.png

    I need one helper column per distinct value in the TP column, so for your example I need one helper for "Tipo A" and a second helper for "Tipo B"

    In G3 ("Tipo-A" helper) copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Creates the PS*QTY summation for Tipo-A.

    In H3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Creates the PS*QTY summation for Tipo-B. - note - the formula cannot simply be dragged across from col-H

    In K3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Your count for "Tipo-A"

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Your count for "Tipo-B" - note - the formula cannot be simply dragged down from row-3
    Attached Files Attached Files
    Last edited by GeoffW283; 11-06-2020 at 12:23 AM.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  5. #5
    Registered User
    Join Date
    05-12-2020
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    15

    Re: Sum and count until a determined value

    Thanks a lot!

+ 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 specific criterion within a determined period
    By londer65 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-29-2020, 10:31 AM
  2. Count Cells Based on Colour Determined by Conditional Formatting
    By RanCanMan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2015, 09:45 AM
  3. getting a count of values in a range where the range is determined by a lookup
    By AMurderOfCrows in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2015, 11:17 AM
  4. COUNT blank cells within a range determined by Todays date
    By stephboucher in forum Excel General
    Replies: 9
    Last Post: 04-16-2014, 08:27 AM
  5. Count sequence of data below a determined value
    By Bruno Silva in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-25-2013, 01:45 PM
  6. [SOLVED] Construct a formula on a pre-determined cell for a pre-determined duration of cells
    By Shaun Gemiver in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2013, 11:14 AM
  7. Count cells determined by value of another
    By sremlap5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2005, 10:48 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