PivotTable duplicates









up vote
0
down vote

favorite












I have some data that I need to find an average day rate for a certain company. The data consists of 1000's of names, some duplicates with a day rate against them.



If I insert a PivotTable and filter on the company, the Average day rate will show, however, I know it is wrong as it is including the duplicate names.



I have got round this by double clicking on the average value and bringing up the data for that company in a new tab. Then I can insert another pivot table to remove the duplicates and then from that, find the average day rate.



Is there a way to by pass having to insert another pivot table, on the filtered tab?



FYI I'm very new to pivot tables.










share|improve this question























  • can you just use the built in remove duplicates feature on the original data?
    – Scott Holtzman
    Mar 31 '17 at 21:02














up vote
0
down vote

favorite












I have some data that I need to find an average day rate for a certain company. The data consists of 1000's of names, some duplicates with a day rate against them.



If I insert a PivotTable and filter on the company, the Average day rate will show, however, I know it is wrong as it is including the duplicate names.



I have got round this by double clicking on the average value and bringing up the data for that company in a new tab. Then I can insert another pivot table to remove the duplicates and then from that, find the average day rate.



Is there a way to by pass having to insert another pivot table, on the filtered tab?



FYI I'm very new to pivot tables.










share|improve this question























  • can you just use the built in remove duplicates feature on the original data?
    – Scott Holtzman
    Mar 31 '17 at 21:02












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have some data that I need to find an average day rate for a certain company. The data consists of 1000's of names, some duplicates with a day rate against them.



If I insert a PivotTable and filter on the company, the Average day rate will show, however, I know it is wrong as it is including the duplicate names.



I have got round this by double clicking on the average value and bringing up the data for that company in a new tab. Then I can insert another pivot table to remove the duplicates and then from that, find the average day rate.



Is there a way to by pass having to insert another pivot table, on the filtered tab?



FYI I'm very new to pivot tables.










share|improve this question















I have some data that I need to find an average day rate for a certain company. The data consists of 1000's of names, some duplicates with a day rate against them.



If I insert a PivotTable and filter on the company, the Average day rate will show, however, I know it is wrong as it is including the duplicate names.



I have got round this by double clicking on the average value and bringing up the data for that company in a new tab. Then I can insert another pivot table to remove the duplicates and then from that, find the average day rate.



Is there a way to by pass having to insert another pivot table, on the filtered tab?



FYI I'm very new to pivot tables.







excel duplicates excel-2007 pivot-table






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 '15 at 23:12









pnuts

46.3k76197




46.3k76197










asked Jan 30 '13 at 17:29









Jazz

59051750




59051750











  • can you just use the built in remove duplicates feature on the original data?
    – Scott Holtzman
    Mar 31 '17 at 21:02
















  • can you just use the built in remove duplicates feature on the original data?
    – Scott Holtzman
    Mar 31 '17 at 21:02















can you just use the built in remove duplicates feature on the original data?
– Scott Holtzman
Mar 31 '17 at 21:02




can you just use the built in remove duplicates feature on the original data?
– Scott Holtzman
Mar 31 '17 at 21:02












2 Answers
2






active

oldest

votes

















up vote
0
down vote













You can make a "count of Names" values field and filter the names from the "Row Label" after you have used your report filter. You just have to filter by company, then click on Row Labels => Value filters => Select which column value you want to filter (count) => Select "Greater Than 1".



One additional note. If you make your data into a Table then there is an option to remove duplicate entries once you are done finding the average. It will definitely be faster than doing it by hand, however it removes the last duplicate entry so be careful






share|improve this answer






















  • thanks, I'll give that a go and let you know how I get on.
    – Jazz
    Jan 30 '13 at 23:04










  • Sorry, had to updated the original post. It's not a "column", it's the "values" field.
    – grandocu
    Jan 31 '13 at 13:39

















up vote
0
down vote













An alternative, if sorting is allowed, might be to restrict your single PivotTable to data that is not duplicated. This might be achieved with a formula such as:



 =COUNTIF(A$1:A2,A2) 


in Row2 and copied down to suit, where I assume ColumnA contains names and you only want one instance and any one instance of each name. Sort on ColumnC and restrict the range for your PivotTable to those rows where the formula returns 1.



A possible drawback however might be if you want certain individuals included more than once based on other criteria. For example if Mrs Roberts is in the list as both Clerical and Management you might want her to be treated as a separate individual for each role.






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f14610065%2fpivottable-duplicates%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You can make a "count of Names" values field and filter the names from the "Row Label" after you have used your report filter. You just have to filter by company, then click on Row Labels => Value filters => Select which column value you want to filter (count) => Select "Greater Than 1".



    One additional note. If you make your data into a Table then there is an option to remove duplicate entries once you are done finding the average. It will definitely be faster than doing it by hand, however it removes the last duplicate entry so be careful






    share|improve this answer






















    • thanks, I'll give that a go and let you know how I get on.
      – Jazz
      Jan 30 '13 at 23:04










    • Sorry, had to updated the original post. It's not a "column", it's the "values" field.
      – grandocu
      Jan 31 '13 at 13:39














    up vote
    0
    down vote













    You can make a "count of Names" values field and filter the names from the "Row Label" after you have used your report filter. You just have to filter by company, then click on Row Labels => Value filters => Select which column value you want to filter (count) => Select "Greater Than 1".



    One additional note. If you make your data into a Table then there is an option to remove duplicate entries once you are done finding the average. It will definitely be faster than doing it by hand, however it removes the last duplicate entry so be careful






    share|improve this answer






















    • thanks, I'll give that a go and let you know how I get on.
      – Jazz
      Jan 30 '13 at 23:04










    • Sorry, had to updated the original post. It's not a "column", it's the "values" field.
      – grandocu
      Jan 31 '13 at 13:39












    up vote
    0
    down vote










    up vote
    0
    down vote









    You can make a "count of Names" values field and filter the names from the "Row Label" after you have used your report filter. You just have to filter by company, then click on Row Labels => Value filters => Select which column value you want to filter (count) => Select "Greater Than 1".



    One additional note. If you make your data into a Table then there is an option to remove duplicate entries once you are done finding the average. It will definitely be faster than doing it by hand, however it removes the last duplicate entry so be careful






    share|improve this answer














    You can make a "count of Names" values field and filter the names from the "Row Label" after you have used your report filter. You just have to filter by company, then click on Row Labels => Value filters => Select which column value you want to filter (count) => Select "Greater Than 1".



    One additional note. If you make your data into a Table then there is an option to remove duplicate entries once you are done finding the average. It will definitely be faster than doing it by hand, however it removes the last duplicate entry so be careful







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 31 '13 at 13:52

























    answered Jan 30 '13 at 18:21









    grandocu

    30614




    30614











    • thanks, I'll give that a go and let you know how I get on.
      – Jazz
      Jan 30 '13 at 23:04










    • Sorry, had to updated the original post. It's not a "column", it's the "values" field.
      – grandocu
      Jan 31 '13 at 13:39
















    • thanks, I'll give that a go and let you know how I get on.
      – Jazz
      Jan 30 '13 at 23:04










    • Sorry, had to updated the original post. It's not a "column", it's the "values" field.
      – grandocu
      Jan 31 '13 at 13:39















    thanks, I'll give that a go and let you know how I get on.
    – Jazz
    Jan 30 '13 at 23:04




    thanks, I'll give that a go and let you know how I get on.
    – Jazz
    Jan 30 '13 at 23:04












    Sorry, had to updated the original post. It's not a "column", it's the "values" field.
    – grandocu
    Jan 31 '13 at 13:39




    Sorry, had to updated the original post. It's not a "column", it's the "values" field.
    – grandocu
    Jan 31 '13 at 13:39












    up vote
    0
    down vote













    An alternative, if sorting is allowed, might be to restrict your single PivotTable to data that is not duplicated. This might be achieved with a formula such as:



     =COUNTIF(A$1:A2,A2) 


    in Row2 and copied down to suit, where I assume ColumnA contains names and you only want one instance and any one instance of each name. Sort on ColumnC and restrict the range for your PivotTable to those rows where the formula returns 1.



    A possible drawback however might be if you want certain individuals included more than once based on other criteria. For example if Mrs Roberts is in the list as both Clerical and Management you might want her to be treated as a separate individual for each role.






    share|improve this answer
























      up vote
      0
      down vote













      An alternative, if sorting is allowed, might be to restrict your single PivotTable to data that is not duplicated. This might be achieved with a formula such as:



       =COUNTIF(A$1:A2,A2) 


      in Row2 and copied down to suit, where I assume ColumnA contains names and you only want one instance and any one instance of each name. Sort on ColumnC and restrict the range for your PivotTable to those rows where the formula returns 1.



      A possible drawback however might be if you want certain individuals included more than once based on other criteria. For example if Mrs Roberts is in the list as both Clerical and Management you might want her to be treated as a separate individual for each role.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        An alternative, if sorting is allowed, might be to restrict your single PivotTable to data that is not duplicated. This might be achieved with a formula such as:



         =COUNTIF(A$1:A2,A2) 


        in Row2 and copied down to suit, where I assume ColumnA contains names and you only want one instance and any one instance of each name. Sort on ColumnC and restrict the range for your PivotTable to those rows where the formula returns 1.



        A possible drawback however might be if you want certain individuals included more than once based on other criteria. For example if Mrs Roberts is in the list as both Clerical and Management you might want her to be treated as a separate individual for each role.






        share|improve this answer












        An alternative, if sorting is allowed, might be to restrict your single PivotTable to data that is not duplicated. This might be achieved with a formula such as:



         =COUNTIF(A$1:A2,A2) 


        in Row2 and copied down to suit, where I assume ColumnA contains names and you only want one instance and any one instance of each name. Sort on ColumnC and restrict the range for your PivotTable to those rows where the formula returns 1.



        A possible drawback however might be if you want certain individuals included more than once based on other criteria. For example if Mrs Roberts is in the list as both Clerical and Management you might want her to be treated as a separate individual for each role.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 13 '15 at 0:29









        pnuts

        46.3k76197




        46.3k76197



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f14610065%2fpivottable-duplicates%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            How to read a connectionString WITH PROVIDER in .NET Core?

            In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

            Museum of Modern and Contemporary Art of Trento and Rovereto