+ Reply to Thread
Results 1 to 3 of 3

Gather and subtotal data

  1. #1
    Registered User
    Join Date
    03-16-2015
    Location
    Indiana
    MS-Off Ver
    Office 2013
    Posts
    2

    Gather and subtotal data

    I'd like to know if there is a way to automate the process of subtotaling data in a spreadsheet? In the attached example, I'd like to subtotal the $ amount for each name, but not have to manually sort and subtotal. If I knew what names to expect, I could use the sumif function, but how can it be done if I don't know what names to expect?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Gather and subtotal data

    Hi, welcome to the forum

    You gave no indication of what you wanted the answer to look like, so try this summary table...

    A
    B
    C
    D
    E
    F
    2
    Name Address Amount
    3
    Smith 101 Elm St.
    $ 400.00
    Smith
    503.32
    4
    Jones 48 Cherry Tree
    $ 32.50
    Jones
    1917.51
    5
    Smith 101 Elm St.
    $ 68.88
    Cline
    1.23
    6
    Cline 390 1st St.
    $ 1.23
    Ash
    309.31
    7
    Ash 21 Grand Ave.
    $ 222.21
    Wilson
    111.55
    8
    Jones 48 Cherry Tree
    $ 1.99
    Washington
    235.54
    9
    Smith 101 Elm St.
    $ 34.44
    Elliot
    16.5
    10
    Ash 21 Grand Ave.
    $ 87.10
    11
    Wilson 1414 3rd St.
    $ 111.55
    12
    Jones 48 Cherry Tree
    $ 291.68
    13
    Washington 68 Center St.
    $ 235.54
    14
    Elliot 400 Grand Ave, Apt B
    $ 16.50
    15
    Jones 48 Cherry Tree
    $ 1,236.50
    16
    Jones 48 Cherry Tree
    $ 354.84


    E3=IFERROR(INDEX($A$3:$A$16,MATCH(0,INDEX(COUNTIF($E$2:E2,$A$3:$A$16),0,0),0)),"")
    This will pull in unique names

    F3=IF(E3="","",SUMIF($A$3:$A$16,E3,$C$3:$C$16))
    to sum by name
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-16-2015
    Location
    Indiana
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Gather and subtotal data

    Ford, thanks for the quick response; this is exactly what I was looking for. I understand the sumif function in cell F3, but am a little stumped on how E3 is generating the unique list of names. I can blindly apply this approach to my situation, but would appreciate if you could walk me through the nested functions. Thanks again.

+ 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] Gather information from data list and sum them up
    By tmacv in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-16-2014, 10:18 PM
  2. Using VBA to parse data...need to click through links, gather data and come back
    By jamesdvance in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-20-2013, 09:15 PM
  3. Using a template to gather data.
    By d.nguyen09 in forum Excel General
    Replies: 1
    Last Post: 07-19-2011, 02:28 AM
  4. Gather data, put in list?
    By greggov in forum Excel General
    Replies: 1
    Last Post: 02-10-2009, 12:51 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