+ Reply to Thread
Results 1 to 6 of 6

PivotSelect for changes data

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    kuala lumpur
    MS-Off Ver
    Excel 2003
    Posts
    3

    PivotSelect for changes data

    Hi all,

    I have a problem with PivotSelect for a changes data.

    I have a raw data that changes everyday and I am creating a pivot table to get my result.
    The data may include Item1 Item2 and Item3, but sometime the source (data) may only have Item1 and Item3 (No Item2)

    Below is my code:
    Please Login or Register  to view this content.
    ]
    My pivot will work if all 3 items are in the source data, but if Item2 is missing (No Item2) from the source data, I will get an error and the group isn't created.

    I really appreciate for any help to solve this error.

    Many thanks in advance.

    scatachi2
    Last edited by scatachi2; 07-08-2010 at 08:21 PM. Reason: edit code

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: PivotSelect for changes data

    Please put your code in code tags - edit post - go advanced - select code - click # icon.
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Registered User
    Join Date
    07-08-2010
    Location
    kuala lumpur
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: PivotSelect for changes data

    Hi all,

    My pivot will working if the data is matching, if one of the item is missing it will not caption and create a group.

    Please Login or Register  to view this content.
    Appreciate for any help..

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: PivotSelect for changes data

    Why do you need to recreate the groups each time? Couldn't you use the same pivot?

    Anyway, a way of doing it would be to test for the existence of each entity in your source data (e.g. find is nothing) then group whatever has been found.

    hth

  5. #5
    Registered User
    Join Date
    07-08-2010
    Location
    kuala lumpur
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: PivotSelect for changes data

    Hi Cheeky,

    Thanks for ur feedback, actually i tried to modify the code but still getting error, do you have any idea how can i modify the code..

    Many thanks in advance..

  6. #6
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: PivotSelect for changes data

    Yeah
    a way of doing it would be to test for the existence of each entity in your source data (e.g. find is nothing) then group whatever has been found
    I could show you if you uploaded an example

+ 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