+ Reply to Thread
Results 1 to 4 of 4

getpivotdata for dates

  1. #1
    Registered User
    Join Date
    11-07-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    9

    Thumbs down getpivotdata for dates

    Pivot table

    Exec_Date Pass Fail Blocked
    06/02/2011 5 8 10
    06/03/2011 8 23 4

    From above pivot table I want to retrieve data based on condition
    I am writing below code but getting error

    Getpivotdata("Exec_Date",$A$4,"Exec_Date", "06/02/2011","Status","Pass")

    Please let me know how to write code for this. Thanks

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: getpivotdata for dates

    Try:

    Getpivotdata("Exec_Date",$A$4,"Exec_Date", Date(2011,6,2),"Status","Pass")

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    11-07-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: getpivotdata for dates

    Thanks Domski .I tried this but still getting error .I tried Vlookup for this also getting answer but refreshing pivot table every day pass,fail,blocked column is not static ,adding new column in pivot table .Please let me know about this .Thanks

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: getpivotdata for dates

    The easiest way to get the syntax for GETPIVOTDATA is to pop = in a spare cell and select a summary cell within your pivot table.

    Dom

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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