+ Reply to Thread
Results 1 to 11 of 11

Pivot Table to summarize data in a table

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Troy, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Pivot Table to summarize data in a table

    Please see attached. We currently have a spreadsheet that we use for monthly projections based on client. We are a healthcare business, so we have billing date, expected receipt date, etc. What we are trying to do is take the projected receipt date and expected amount for each client and put it on a summary tab and then sort by oldest date to newest date in order to know when cash will be coming in.

    If you see on the attached worksheet, I tried to do a pivot table to summarize the data I want, which I would do for each of the client tabs, but I am wondering how do I summarize the data on another tab? Would I have to link it or should I make the pivot table on another tab, etc. Please help. This is a problem that I have not been able to solve and it is creating a lot of manual work.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Pivot Table to summarize data in a table

    You usually put all clients in the same tab for this kind of data. You'll need to add at least one column for the client's name. This way you can create a pivot table (in a new tab) that would summarize all of your data at once. Is that possible for you?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    Troy, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pivot Table to summarize data in a table

    I can add a column to each tab with the client name. Then what do I do? Move each pivot table to a new tab?

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Pivot Table to summarize data in a table

    Look at the attached workbook where I copied your client tab multiple times for a test.
    The button in the summary sheet will run a macro that will copy data from every client's tab into Summary. It adds the client's name after the last column in Summary.
    From this Suymmary sheet, you just have to create a Pivot table into a new sheet and configure it to get your desired report.

    Does this work for you?
    Attached Files Attached Files
    Last edited by p24leclerc; 11-05-2014 at 08:45 PM.

  5. #5
    Registered User
    Join Date
    07-25-2013
    Location
    Troy, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pivot Table to summarize data in a table

    Yes, thank you. Is there anyway to put the client name in the left column or do I have to modify the client sheets and put the client name in column A first? Can you give me instructions to copy the macro to other monthly sheets? Thank you!

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Pivot Table to summarize data in a table

    Here is the macro you can copy to other workbook.
    Please Login or Register  to view this content.
    To do so, you go into the Visual Basic Editor by clicking ALT + F11. You should see, on the left side of the screen, the list of opened workbook along with the name of all their sheets. First, make sure you click on your workbook you want to copy the macro to. Then you go tho the top menu and click on Insert then on Module. Now, you double click on the created Module (if it's the first one, it will be named Module1) and paste the attached macro.
    Now, you don't have the button to trigger the macro but you can still run it by clicking on the View menu then, on the right side of the menu, you click on the Macros menu and then on View Macros. In the window Macro, look for your macro named Gather_Data and click on Run.

    Attached is the new workbook with the client's name in column A.

    Hope this helps
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-25-2013
    Location
    Troy, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pivot Table to summarize data in a table

    I haven't tried it yet, but thank you so much! This is more than awesome!

  8. #8
    Registered User
    Join Date
    07-25-2013
    Location
    Troy, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pivot Table to summarize data in a table

    It gave me this error, when I ran the macro once I put it into my spreadsheet with all the client tabs. What did I do wrong?

    macro error1.jpgmacro error.png

  9. #9
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Pivot Table to summarize data in a table

    Can't tell from the screen. Can you attach your workbook so I can try it myself?

  10. #10
    Registered User
    Join Date
    07-25-2013
    Location
    Troy, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pivot Table to summarize data in a table

    I think I have it working now. Thank you.

  11. #11
    Registered User
    Join Date
    07-25-2013
    Location
    Troy, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Pivot Table to summarize data in a table

    Thank you. Thank you. Thank you. This is making our lives much easier already! I will post if I have any other questions, but so far I am able to make it work on each monthlyworkbook.

+ 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. Tricky data to summarize in a pivot table
    By dwood1354 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-30-2013, 02:30 PM
  2. Summarize times in a pivot table
    By Mark@Marc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2005, 12:05 PM
  3. Using Pivot Table Function to Summarize
    By David in forum Excel General
    Replies: 0
    Last Post: 07-08-2005, 12:05 AM
  4. How do I not summarize row data in a Pivot Table?
    By alanschenk@gmail.com in forum Excel General
    Replies: 4
    Last Post: 04-19-2005, 10:06 PM
  5. How do I not summarize row data in a Pivot Table?
    By Alan Schenk in forum Excel General
    Replies: 0
    Last Post: 04-18-2005, 10:38 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