Extract only Certain Data for Pivot Table Column

Todd W
Todd W used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Rob HensonFinance Analyst

Commented:
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 WSystems Administrator

Author

Commented:
sorry I was sure I attached the sample spreadsheet.  here it is.
Book1.xlsx
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
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.
PivotTable.xlsx
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Finance Analyst
Commented:
With a pivot table, unfortunately it will show all columns for each item sequentially, eg Green Quantity & Value, Purple Quantity & Value, etc

As mentioned, you can also add the colour as a filter.

I have done both in the attached.
Book1.xlsx
Todd WSystems Administrator

Author

Commented:
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 WSystems Administrator

Author

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

Thank you again
TW
Rob HensonFinance Analyst

Commented:
Glad I was able to help

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial