+ Reply to Thread
Results 1 to 7 of 7

Macro to create a Summary Sheet from a Pivot Table

  1. #1
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    128

    Macro to create a Summary Sheet from a Pivot Table

    Hello All,
    Wishing all a very Happy and Prosperous New Year 2019.

    I am using Excel 2013 and have a pivot table as shown in the sample attached herewith

    I want a macro to create a Report from the Pivot Table as shown on the Summary Sheet

    The Pivot sheet has many items in Column E (LC)

    Currently I filter Col E and then copy and paste on Summary sheet for each entry

    Few points to be noted mentioned on Pivot and Summary Sheet

    Col A has PN Numbers which can be one or many. I have highlighted where the PN is repeated

    When the PN is repeated then only the first row values showed be shown on the Summary sheet

    have colored the cells for sake of explanation only.

    Hope to get some help

    TIA
    Rehana
    Attached Files Attached Files
    Last edited by rehana402003; 01-02-2019 at 12:39 PM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,591

    Re: Macro to create a Summary Sheet from a Pivot Table

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    128

    Re: Macro to create a Summary Sheet from a Pivot Table

    Hello Jindon,
    I will test the code with my actual data
    In the meantime, is it possible to display the numbers in Column E and G on the Summary Sheet with Thousands separator and two decimal places.

    eg 17500 to show as 17,500.00
    193987 to show as 193,987.00
    100 as 100.00

    Thanks for your time and help

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,591

    Re: Macro to create a Summary Sheet from a Pivot Table

    Quote Originally Posted by rehana402003 View Post
    I will test the code with my actual data
    Post back with the result first, then think about the cell formatting if it was successful.

  5. #5
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    128

    Re: Macro to create a Summary Sheet from a Pivot Table

    Dear Jindon,
    The code works but there is a slight problem
    My pivot table shows two lines in the headers. Please see Cell J2 in the attached sample
    which shows the word 'Value' and with that the result is shown on the Summary Sheet
    Would you please see to fix this problem and also the formatting on numbers in Col E and G on the Summary sheet with Thousands separator and two decimal places

    Many thanks for your time and help
    Have a wonderful year

    Regards

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,591

    Re: Macro to create a Summary Sheet from a Pivot Table

    1) Change one line in "test" sub procedure.
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    2) Replace the lines in "DataOut" sub prociedure.
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    128

    Re: Macro to create a Summary Sheet from a Pivot Table

    Thanks a million Jindon.
    Works like a charm.
    Post marked SOLVED

    God Bless you

    Regards

+ 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] Have macro looking at column in summary sheet and matching to data in pivot table
    By sbrandhorst in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2016, 05:30 PM
  2. need a macro to create a summary table
    By has1101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2015, 12:39 PM
  3. How to create a macro to create a pivot table on a new sheet
    By thlee1122 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2015, 11:14 AM
  4. Want to create a summary sheet with variable number of worksheets in a file
    By alw99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2014, 11:44 PM
  5. [SOLVED] Bring Pivot table totals to summary sheet
    By ZuneidDassu in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-04-2014, 06:03 AM
  6. [SOLVED] Need a macro to create a summary sheet
    By rgeorge in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-07-2014, 12:26 PM
  7. Macro to create summary table
    By robertguy in forum Excel General
    Replies: 2
    Last Post: 12-14-2011, 06:11 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