+ Reply to Thread
Results 1 to 6 of 6

Pivot table to split product combinations by age and gender

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Pivot table to split product combinations by age and gender

    I have a large data set which indicates the gender and age band of customers and what products they bought.

    I need to easily present this to show the breakdown of purchase baskets by gender and age band - for example, the number of women in the 35 to 44 age band who bought a bounty and a lion bar and the number of men in the 25 to 34 age band who bought all four.

    I have been playing about with pivot tables but can't seem to get what I am looking for. I attach an example datasheet with an indication of the results I am looking for. Any info you can provide would be great.

    Many thanks

    G
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot table to split product combinations by age and gender

    I re-arange the data with the macro below.

    After that a pivot table.

    See the attached file.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Pivot table to split product combinations by age and gender

    Thanks a lot for replying, do you think a macro is the only way to resolve this issue?

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot table to split product combinations by age and gender

    No, it can also be done with formula's.

    But since you got al lot off (empty) columns that will be a hell of a job (at least for me).


    What is the problem using a macro to help you re-arange your data?

    The pivot table is the way you want it?

  5. #5
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Pivot table to split product combinations by age and gender

    Macro's are just a bit outside my skill set. If it helps the empty columns have no purpose so they can be deleted. Thanks again.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot table to split product combinations by age and gender

    as you have seen did I added all products in one column and all values in one column.

    in that way it is the easied format to use the pivot table.


    The pivot table is the way you want it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pivot Table / Sum Product
    By shudder in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-17-2013, 05:29 AM
  2. Pivot Table and PRODUCT function
    By andrewc in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-27-2013, 02:57 AM
  3. [SOLVED] Getting a list of all possible combinations from different fields in a Pivot Table
    By wetbean in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-19-2013, 04:40 PM
  4. Pivot table with value = Product(field) -1
    By bpeikes in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-29-2012, 12:48 PM
  5. Pivot Formula: Gender(male)/Gender(female)
    By peterso in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2011, 04:23 PM

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