+ Reply to Thread
Results 1 to 9 of 9

combining company data and merging/summing up data from certain columns

  1. #1
    Registered User
    Join Date
    03-11-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    combining company data and merging/summing up data from certain columns

    Hi there,

    I have several spreadsheets with lists of real estate companies and their respective sales in each state. Each workbook contains data for a certain state (FL, TX, CA, etc.). Some companies had transactions in multiple states and I would like to find out their total sales and sales value in all states combined. How do I do this. I attached a sample spreadsheet that represents all the transactions of one particular state.
    Attached Files Attached Files

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: combining company data and merging/summing up data from certain columns

    All you need is a pivot table.

    (1)
    Highlight your data table (including the top, Header row).

    (2)
    In the ribbon, go to Insert > PivotTable

    (3)
    Press OK (will put the pivot table in a new sheet)

    (4)
    In the "Choose fields to add to report" area of the new sheet, put a checkmark next to Company Name, Number of Sales, and Sales Value.


    That should do it.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    03-11-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: combining company data and merging/summing up data from certain columns

    I tried the Pivot Table but it wasn't able to put everything in the right order.

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: combining company data and merging/summing up data from certain columns

    Upload your worksheet with a pivot in place, I can take a look at it.

  5. #5
    Registered User
    Join Date
    03-11-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: combining company data and merging/summing up data from certain columns

    Thank you. It's attached.
    Attached Files Attached Files

  6. #6
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: combining company data and merging/summing up data from certain columns

    see attached - I just used a normal pivot table instead of editing your example table (don't have power pivot on the computer I'm on right now).
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-11-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: combining company data and merging/summing up data from certain columns

    Nice, thanks a lot!
    Is it possible to sort by amount of properties owned or sales value in a pivot table?

  8. #8
    Registered User
    Join Date
    03-11-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: combining company data and merging/summing up data from certain columns

    I don't think a pivot table is the way to go with this one. How do I add the addresses to the company names without it looking all unstructured and messy?

  9. #9
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: combining company data and merging/summing up data from certain columns

    Well, you can format pivot tables to look better if you like.


    Basically, you are looking to obtain aggregates of the sales value, number of sales, and now the properties owned fields - from the data table you presented.

    You have 4 options, in order of 'best practice' from my point of view.

    1) Just have the aggregates pulled from the data source directly - don't even mess with the details.

    2) Pivot the details table you are given to obtain the aggregates (sums in this case) - that is a very good option if the data is going to be refreshed because you won't have to redesign anything.

    3) Use worksheet functions to total the values for each company - this will require you to make a distinct list of company names (every time you change the data) and then add in the functions (see example).

    4) Use subtotals - this requires that you copy the data table to a normal range, sort that range by company name, add the subtotals through the ribbon, then do your sorting.
    Attached Files Attached Files

+ 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. Combining 2 columns if they have the same company
    By ldrixole in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-26-2016, 04:13 PM
  2. [SOLVED] Merging/Combining Data From Two Spreadsheets
    By Micheleami in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-21-2013, 06:01 PM
  3. [SOLVED] Merging rows and combining data
    By bergie60 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2013, 10:23 AM
  4. Merging multiple rows and combining data
    By mhj6692 in forum Excel General
    Replies: 8
    Last Post: 01-03-2013, 08:09 PM
  5. [SOLVED] Partial combining/merging of 2 tabs for only necessary data
    By ila in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-28-2012, 04:34 AM
  6. merging/combining data
    By Jearnizck in forum Excel General
    Replies: 2
    Last Post: 11-07-2012, 01:17 AM

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