+ Reply to Thread
Results 1 to 5 of 5

GETPIVOTDATA() when column has not title

  1. #1
    Registered User
    Join Date
    12-05-2011
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    57

    GETPIVOTDATA() when column has not title

    I have created a Pivot Table that looks as follows;

    Values
    0 To 3 Months 200
    3 to 6 Months 111
    6 to 12 Months 121
    12 to 18 Months 70
    18 to 24 Months 24
    Over 24 Months 32



    The column with the totals you will note does not have a title. So, how do I use GETPIVOTDATA to extract the data; I have started with something like this;

    =GETPIVOTDATA(?????,$B$4,"Values","0 To 3 Months")

    which I want to return the value of 200. Where $B$4 is the top left hand corner of the Pivot Table, and the ????? is the bit I don't know.

    Can anyone help?

    Many thanks in anticipation
    Last edited by Nerdio; 06-26-2015 at 09:50 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: GETPIVOTDATA() when column has not title

    Hi Nerdio,

    Pivot Tables need a column head for each column, AND they need to be unique.

    It looks like you need/want to use VLookup instead of Pivots. Can you supply a sample workbook and show what you expect as an answer?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    12-05-2011
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    57

    Re: GETPIVOTDATA() when column has not title

    This is a Pivot Table produced from PowerPivot. The totals I want to get hold of are all derived using CALCULATE(), and are 'Values' in the Pivot Table. I don't know why it does not have a column heading, and I cannot see how to add one.

    I can't attach the spreadsheet, because it is dependent on data that is on a database,so it would not work. The following though is a screen shot;

    Capture.PNG
    Last edited by Nerdio; 06-26-2015 at 10:11 AM.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: GETPIVOTDATA() when column has not title

    If you will create manual link to a value cell in this pivot table what is the formula created?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  5. #5
    Registered User
    Join Date
    12-05-2011
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    57

    Re: GETPIVOTDATA() when column has not title

    I didn't realise that if I made a manual link into a Pivot Table, it would generate the GETPIVOTDATA() command. and here is the answer;

    =GETPIVOTDATA("[Measures].[TicketCount0To3]",$B$4)

    Which makes perfect sense and works of course.

    Thanks

+ 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] GETPIVOTDATA – How to force getpivotdata to accept missing data
    By scottc_00 in forum Excel Formulas & Functions
    Replies: 39
    Last Post: 02-11-2015, 03:23 PM
  2. Return the Title of a column if the column is the highest column with data
    By williamspage in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-22-2013, 10:05 AM
  3. Replies: 4
    Last Post: 10-19-2012, 12:09 PM
  4. [SOLVED] Named range=Column title,comumn title in cellB6 use B6in equation
    By Graham in forum Excel General
    Replies: 2
    Last Post: 07-21-2006, 05:10 AM
  5. [SOLVED] GetPivotData with column grand totals
    By Enrico Campidoglio in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-14-2005, 10:05 AM

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