+ Reply to Thread
Results 1 to 10 of 10

Pivot Table, select data and put into new sheet.

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Pivot Table, select data and put into new sheet.

    I have a set of data that I would like to be able to select some of the rows of data and put them into a new sheet.

    I would like to use the format of pivot table as that is the best way to be sorting all my data.

    I can do the pivot table part, but is there a way to check or tick data in pivot tables and then run a marco or to collate the data with ticks into a different sheet? Is there another way of doing this?


    Pivot table test.xlsx

    Thanks in advance

  2. #2
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Pivot Table, select data and put into new sheet.

    Hi,

    Sorry, but I do not see why you need a macro transferring a subset of your data to a new sheet. You can easily achieve the layout you want by modfying the pivot table and it will be much easier to maintain upon source data additons, removals or changes in logic

    Click anywhere on the pivot table, go to PivotTable Tools tab --> Design sub tab ---> Report Layout --> Show in tabular form
    Then click on a field with a plus sign and go to Options sub tab --> Expand entire field (repeat that for any field you need expanding)

    If you want each item to be repeated then right-click anywhere on the pivot field, select Field Settings option --> Layout & print sub tab --> tick Repeat Item labels option (again repeat for as many fields as necessary

    Once done modifying, you can copy and paste the pivot table in a new sheet and tweak filters to show a single category (e.g. Biological)
    Liked the answer given? click * to say so

  3. #3
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Pivot Table, select data and put into new sheet.

    Wakeupcall

    Thanks for those tips. Ill be able to use them at some stage but the reason I want to be able to highlight or tick some of the data is that I want to be able to select only a few of the options in the last field then transfer them into the result tab. e.g.

    UTILISE disposable Gloves
    UTILISE disposable Mask
    UTILISE Ex Rated ventilation

    just like the example in the "result" tab

  4. #4
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Pivot Table, select data and put into new sheet.

    I see,

    won't applying a label filter on the last pivot field do the trick? Something like "contains UTILISE"? What is your criteria for highlighting records that should appear in the result tab?
    Last edited by wakeupcall; 11-24-2013 at 09:37 AM.

  5. #5
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Pivot Table, select data and put into new sheet.

    once again i gave a bad example in the previous post.

    From the pivot table i would like to have free range on what i would like to select and therefor transfer to the result tab.

    The aim is to have a pivot table where i can open and close each of the fields, once the final field is open then select which data in the final field is transferred to the result tab.

    I hope this makes sense this time.

  6. #6
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Pivot Table, select data and put into new sheet.

    Hi ratdogexcel,

    is this what you are after?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Pivot Table, select data and put into new sheet.

    Pivot table transformed.xlsx


    Currently i run a macro that looks at the before tab and then looks for True in the transfer column. If there is a true then it copies that row into the after sheet.

    I like the look of the normal pivot table but i would like the option to select certain records to be transferred to the after page.

  8. #8
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Pivot Table, select data and put into new sheet.

    Hi ratdogexcel,

    In that case it would defintely help if I could see the code of your current macro so that I know what condtion it searches for to equal True and in what Excel object exactly
    Also, does the before tab contain a pivot table, table or just data range. The result tab - is it cumulative or is it overwritten every time the macro is run?

    To what extent is the structure of your original file (in terms of sheets and objects in them) replicated in the excel file I have seen?

    If there is not an exact match, it would be helpful to see such

  9. #9
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Pivot Table, select data and put into new sheet.

    Quote Originally Posted by wakeupcall View Post
    Hi ratdogexcel,

    In that case it would defintely help if I could see the code of your current macro so that I know what condtion it searches for to equal True and in what Excel object exactly
    Also, does the before tab contain a pivot table, table or just data range. The result tab - is it cumulative or is it overwritten every time the macro is run?

    To what extent is the structure of your original file (in terms of sheets and objects in them) replicated in the excel file I have seen?

    If there is not an exact match, it would be helpful to see such
    Here is the code i use to transfer the selected items into a new sheet

    Please Login or Register  to view this content.
    Test checkbox 25-12-13.xlsm

    This code is within Master module.

    To run the whole thing I use "sequence"

  10. #10
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Pivot Table, select data and put into new sheet.

    I found a solution in the contextures website

    http://blog.contextures.com/archives...in-excel-2010/

    it adds a slicer from an associated pivot table and does a check on an id no. Really quite smart by AlexJ.

+ 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. Pivot Table select all Pivot Items not working as intended
    By rasonline in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2014, 05:22 PM
  2. PProtect a sheet containing a pivot table but allow table to refresh data?
    By ThomasCarter in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-22-2013, 05:46 AM
  3. Excel 2007 : Getting Pivot Table data in another sheet.
    By acsishere in forum Excel General
    Replies: 5
    Last Post: 05-28-2009, 05:20 PM
  4. I can not select Pivot Table on my Data Menu
    By Trooper's Wife in forum Excel General
    Replies: 2
    Last Post: 11-22-2005, 06:25 PM
  5. [SOLVED] Pivot Table Report formatting - can't select Data Source Order
    By Becky in forum Excel General
    Replies: 1
    Last Post: 08-04-2005, 02:05 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