+ Reply to Thread
Results 1 to 4 of 4

macro that filters pivot table and copy values to other sheet

  1. #1
    Registered User
    Join Date
    06-02-2014
    Posts
    11

    macro that filters pivot table and copy values to other sheet

    Hi,

    In short - I look for a macro that will filter out pivot table based on set of items defined in other
    sheet and for each filtering will copy out values yet to an other sheet.

    In detail:
    In Sheet B I have pivot table with few items, but only one I am interested to filter out.
    For each item I get an value in cell D2 (still pivot table) and this value is used in a calculation.
    Outcome of the calculation is in cell J2 (not a pivot table, just a regular cell).
    So I have around 50 items (count is increasing) defined in Sheet A in column B (data in sheet A
    is data source for pivot table), so to get an overlook of calculations for every item, I need to manually
    filter it in pivot table and then copy-paste outcome as values to an other sheet (sheet C).

    So macro should consist of three components:
    - filtering out items in pivot table;
    - defining items ,that need to be filter, in a specific range (column B in Sheet A for example) (or just filter all possible items);
    - copy and paste as values specific range/cells to a new sheet (where each paste is pasted in a new line).

    In other words macro should say - “filter out each item, that is listed in Sheet A in column B, in a pivot table in
    Sheet B and then copy line 2 to sheet C in the next empty line”

    Attached in screenshot from actual file.

    problem 1.png

    Any help?

    BR, Arvis

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: macro that filters pivot table and copy values to other sheet

    Can you attach a sample workbook showing what you want as your result mocked-up?

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Registered User
    Join Date
    06-02-2014
    Posts
    11

    Re: macro that filters pivot table and copy values to other sheet

    Message deleted, next one is correct one.
    Last edited by arvimeld; 07-19-2018 at 07:35 AM.

  4. #4
    Registered User
    Join Date
    06-02-2014
    Posts
    11

    Re: macro that filters pivot table and copy values to other sheet

    Here is the file. Sheet "outcome" is the expected result.
    Attached Files Attached Files
    Last edited by arvimeld; 07-19-2018 at 07:36 AM.

+ 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. Macro to update pivot table filters from multiple pivot tables of different data sources
    By groblerdn85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2017, 05:10 AM
  2. [SOLVED] Checkboxes in one sheet to control report filters in pivot table
    By retzlar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2015, 10:04 AM
  3. Applying multiple values filters on a single variable (pivot table)
    By greengirl in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-29-2015, 08:24 PM
  4. Use macro to set filters in olap pivot table
    By Akash_C in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2015, 09:36 AM
  5. Simple Pivot Table query.. getting 2 values with filters
    By sailesh9630 in forum Excel General
    Replies: 12
    Last Post: 03-13-2014, 05:35 AM
  6. Replies: 1
    Last Post: 09-18-2013, 03:50 PM
  7. Allow pivot table filters on a protected sheet
    By cmb80 in forum Excel General
    Replies: 2
    Last Post: 08-24-2011, 02:59 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