+ Reply to Thread
Results 1 to 7 of 7

Find pivot range formula

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Find pivot range formula

    Hi,

    i am looking a way to find pivot range and refer to it.
    Assume to first column, first cell.

    It can be done by pivot name?
    It is possible to do it?

    i know that i can use OFFSET (volatile function - not for me) or index and sum but still i have to know where pivot table is...

    edit: please move the topic to Excel Formulas subforum.

    Best,
    Jacek

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Find pivot range formula

    Using UDF

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Please Login or Register  to view this content.

    =GetPivotRange("PivotTableNameHere","WorksheetNameHere")


    =GetPivotRange("PivotTable1","pvt1")
    Attached Files Attached Files


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Find pivot range formula

    Hi , thank you.

    i think this is only one available way.
    Question is how often this function will be calculated?

    I want to avoid volatile functions.
    The preferred way is to only one time define it because pivot table will be in one place all the time.

    Best,
    Jacek

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Find pivot range formula

    The given UDF is not volatile.

  5. #5
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Find pivot range formula

    Yes,

    but when i will add range of pivot table to data validation list and use it in each cell in column table it can be.

    I thank i have to use static function here.

    Best,
    Jacek

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Find pivot range formula

    Then No Formula's will do that for you.

    Convert the UDF to Sub Routine to make it as static on button press.

  7. #7
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Find pivot range formula

    I can not use UDF as static?

+ 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] formula to find the cell above the grand total of a Pivot Table
    By trisoldee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2018, 09:00 AM
  2. Replies: 8
    Last Post: 09-21-2015, 07:28 PM
  3. Replies: 1
    Last Post: 03-02-2015, 11:18 AM
  4. [SOLVED] Using Formula to Find Average in a Pivot Table
    By ayro in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2014, 08:08 AM
  5. Find blank cell, insert formula to find median of above cell range
    By lilyeye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2013, 11:58 AM
  6. Code to find named range doesn't find the correct field range?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2012, 05:54 PM
  7. Replies: 3
    Last Post: 06-21-2010, 02:28 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