+ Reply to Thread
Results 1 to 4 of 4

summation formula

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Vermont,USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    summation formula

    I am trying to make a summation of a range of numbers in a data set based on a specific criteria.

    In column 1 represents a person specified by a number (1,2,3...)
    Column 2 represents the number of miles a person ran
    So in column 3 I want to have a summation of the total mileage ran by each person on the row with the last entry of the person.

    What I started to do was simply sum the range (cell C12 =sum(B1:B:12))
    The problem with this is that I have many individuals in column 1 and they are not all the same length so I can't just use the same summation formula and copy it.
    Is their a formula I could us to make it so all the cells return no value in column C except for the last one of the person other than manually typing in =sum(range) on the last cell of each individual?

    I hope what I am trying to do is clear.


    I have attached an example if my words were not clear.
    Thanks for the help!!
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: summation formula

    Hi VT1921,

    Welcome to the forum.

    See the attached file where I have used a dynamic name to achieve the desired results.. thanks.
    Sample(12).xls

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: summation formula

    In C2 and dragged down:

    =IF(A3=A2,"",SUM(B$1:B2)-SUM(C$1:C1)) or =IF(A3=A2,"",SUMIF(A:A,A2,B:B))
    Last edited by Cutter; 05-15-2012 at 01:38 PM.

  4. #4
    Registered User
    Join Date
    05-15-2012
    Location
    Vermont,USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: summation formula

    Thank you all very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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