+ Reply to Thread
Results 1 to 6 of 6

Pivot Table Amend to value in cell

  1. #1
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Pivot Table Amend to value in cell

    Hi,
    I have the following code which makes sure a blank date does not get picked up in a pivot
    Please Login or Register  to view this content.
    I would like to amend the above and only show me the date which equals to the value in cell A1 in sheet "sheet1" and hide all other dates...

    how can i do this?
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Pivot Table Amend to value in cell

    This might work, I couldn't test it
    Please Login or Register  to view this content.
    Last edited by royUK; 02-01-2009 at 07:07 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Pivot Table Amend to value in cell

    how about if i had a value in a string called "mydate"... so not from a cell on a sheet?

    something like:
    Please Login or Register  to view this content.
    i can't test it right now neither...

  4. #4
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Pivot Table Amend to value in cell

    would the above work?

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Pivot Table Amend to value in cell

    Quote Originally Posted by pr4t3ek View Post
    would the above work?
    You have the workbook, have you tested your code? The code I posted works when I tested it on some dummy data, replace the cell with the variable name.

  6. #6
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Pivot Table Amend to value in cell

    and so how would i hide the rest of the pivot items?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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