+ Reply to Thread
Results 1 to 4 of 4

Adding a running total

  1. #1
    Registered User
    Join Date
    09-19-2018
    Location
    Usa
    MS-Off Ver
    Latest
    Posts
    2

    Adding a running total

    Hello. I hope I asking the question properly....I have a column (column A) that has a list of customer numbers. In column E I have charges for customers.

    Im trying to find out I can get a total amount of charges per customer. So for a little more information....I may have a customer that has 10 charges and then another customer that may only have 5 charges...so forth and so on.

    Essentially Im looking for something that would work like...for lack of a better term...a continuous if statement. It would scan the entire workbook line by line to compare to see if they are equal.

    So if A1 and A2 are the same...Add the dollar figure in C1 to C2.
    If A3 is the same..add to the sum of C1 and C2.
    If A4 is not the same as A3, is it equal to A5. If so, add C4 and C5.
    ....

    Any suggestions would be appreciated. Thanks.
    Last edited by Wellum18; 09-19-2018 at 01:57 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Adding a running total

    Do you have a separate list of unique customer names/numbers? If so, it would be quite easy to use a SUMIF or SUMIFS formula to get the totals per customer.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-19-2018
    Location
    Usa
    MS-Off Ver
    Latest
    Posts
    2

    Re: Adding a running total

    Thanks for replying.

    All the customers numbers are in column A only and they are unique.

    So for example customer 101010 may have 10 charges. Customer 105555 may have 5 charges.

    Sorry, I didn't ask the initial question properly.
    Last edited by Wellum18; 09-19-2018 at 01:58 PM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Adding a running total

    Try this formula in the first row of data (assumed to start in row 2):

    =IF(COUNTIF(A$2:A2)=1,SUMIFS(E:E,A:A,A2),"")

    then copy this down. The total for each customer will appear only on the first row that the customer number appears.

    Hope this helps.

    Pete

+ 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. Adding to a running total
    By RGSL in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2013, 11:13 AM
  2. Adding to a running total
    By Trussy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2011, 05:43 PM
  3. [SOLVED] Adding numbers to a running total
    By [email protected] in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  4. [SOLVED] Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  5. [SOLVED] Adding numbers to a running total
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-26-2005, 07:05 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