Avatar of Todd W
Todd W
Flag for United States of America asked on

Extract only Certain Data for Pivot Table Column

so I have another one that you folks might be able to help me with with please.   See attached

Employee Name
Possible Colors of Product - RED, GREEN, YELLOW, PURPLE
Amount of Each Sale
Total of Each color

So I need to pivot table the data to show

Employee Name
How Many of Each Color for each employee
Total # of sales regardless of color for each employee
Total Amount of Sales for each employee

How do I get a pivot table to show me only RED or only BLUE, etc. in the respective columns?

Thanks much
Microsoft ExcelVisual Basic ClassicMicrosoft Office

Avatar of undefined
Last Comment
Rob Henson

8/22/2022 - Mon
Rob Henson

No file attached.

If the colour of the product is in its own column in the source data you can use it as a filter option.

When in the Pivot Table and the field list is visible on the right, drag the Colour column to the Filters pane (top left window in the bottom right area). This will then appear above the pivot table and will have a drop-down to select the colours; you will need to tick the option for selecting multiple items if you want more than one item ticked.
Todd W

sorry I was sure I attached the sample spreadsheet.  here it is.
Subodh Tiwari (Neeraj)

You may insert a Pivot Table as shown in the attached and insert a Color Slicer so that you can pick the color you want to show on Pivot Table.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Rob Henson

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Todd W

Subodh thank you sir - almost but not quite what I'm looking for.  Something I did not mention is I will need to print this pivot table out for reporting so it cannot have all the extras accompanied by something as the Color Slicer in it.  Needs to be simple formatted.  Also the $ amounts for the varying colors is not what I was looking for. I was looking for the total # (not $ amount) of Red, Green, Purple, Yellow by employee so for example Employee AA has 21 red,  6 green, 3 yellow, 2 purple for a total of 32.
Todd W

thank you both for your input.  compiling info from the two of you i was able to achieve what I needed.

Thank you again
Rob Henson

Glad I was able to help
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.