+ Reply to Thread
Results 1 to 12 of 12

Grouping multiple columns into one field for Pivot Table

  1. #1
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile Grouping multiple columns into one field for Pivot Table

    Hi All,

    I have a spreadsheeet in work that I have inherited. On this worksheet we have a list of customers with their various details in the column headers such as name, telephone number, email and so on.

    Now the tricky part is we have a several column headers for the areas they work in. To simplify what I am trying to explain. Let us say they are states. So for example a customer could work in NY, CA, CO, MT and so on. Now this is usually yes or a no. For yes we simply put an 'X' in the customer row for each state they work in. So if a customer works in New York and California then we would put an 'X' under both of those columns.

    This works fine, however if I now want to run a privot report to see how many states one of these customers work in then it becomes tricky because each state has its own column heading and therefore a field.

    How can I group a range of column headers and call them say 'States' and then from that run a pivot table report to find out what states my customers work in and have a cout of this also?

    I am using Excel 2007.

    Thanks in advance for any help offered.
    Last edited by Zyphon; 01-19-2011 at 12:16 PM. Reason: Issue have now been resolved.
    Best Regards.

    Michael
    -----------------------------------
    Windows Vista, Microsoft Office 2007

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,883

    Re: Grouping multiple columns into one field for Pivot Table

    If you go to the link below and advance the video to 28:20, you will see a similar solution. If you have time to watch the whole video--there are some very cool features shown.

    http://www.datapigtechnologies.com/W...tTableTips.htm

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Re: Grouping multiple columns into one field for Pivot Table

    Hi Alan,

    Thanks for the link to that video, I will check it out when I get home as due to restrictions at work I am unable to access the video in the link.

    Once I have seen the video I will feed back to you.

    Thanks again for your help.

  4. #4
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Re: Grouping multiple columns into one field for Pivot Table

    Hi Alan,

    I just wanted to feed back on the link to the Pivot Table tips tutorial. I watched the whole thing it was fantastic and very educational so many thanks.

    Thanks also for being so spot on with the time index to addressing my problem this is exactly what I was looking for and has helped me a lot. I shall try to put it into practice tomorrow.

    I guess the only question that remains is: For those states where a particular company doesn't service, do I leave those blank or put an N in there? I know the usual rule of thumb is to not have any holes in the source data when doing a pivot report.

    Thanks.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,883

    Re: Grouping multiple columns into one field for Pivot Table

    I am not sure what would happen if you left it blank. You can try your pivot without doing anything and if there is an issue, then you can always populate the cells.

    Alan

  6. #6
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Re: Grouping multiple columns into one field for Pivot Table

    Thanks again for your help Alan, I really appreciate it.

  7. #7
    Registered User
    Join Date
    09-26-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Grouping multiple columns into one field for Pivot Table

    Hi I have a similar requirement of bringing multiple column labels under one report filter. Can you please advice me how to do it as I am not able to open the video link do not know what's the problem.

    Looking forward to hear from you.

    Thanks,
    Vikash

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Grouping multiple columns into one field for Pivot Table

    Vikash,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  9. #9
    Registered User
    Join Date
    09-26-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Grouping multiple columns into one field for Pivot Table

    hi,
    I have posted it as a new thread. Please refer the link below:
    http://www.mrexcel.com/forum/powerpi...ml#post3377639

    Please let me know if someone can help me.

    Thanks,
    Vikash

  10. #10
    Registered User
    Join Date
    09-26-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Grouping multiple columns into one field for Pivot Table

    Can anyone help me

  11. #11
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Grouping multiple columns into one field for Pivot Table

    Vikash, please bump your own thread. Do not bump this thread.

    Also, the link you provided is in Mr.Excel not this site. So please create a new thread in this forum.
    Last edited by arlu1201; 02-02-2013 at 11:05 AM.

  12. #12
    Registered User
    Join Date
    09-26-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Grouping multiple columns into one field for Pivot Table

    I am not trying to bump anyone thread rather looking for a solution. If you see above I have given a link to my own thread. Hope this helps you.

+ 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