Pivot the Same Data Multiple Times

KaleyAnne

New Member
Joined
Aug 7, 2019
Messages
2
Hello -

I am trying to pivot the same data multiple times to understand the all sub-level components of my finished parts. I have a list of parent items and the items that make them up which looks like this:
Parent Item (A) Component Item (B)

I can pivot the parent to component to get all the details on what parts make up the parent part, HOWEVER there are sub-assemblies in there.

For example, say I make Popsicles, my data looks like this:
Parent Item (A)......Component Item (B)
Popsicle Red ...........Stick
Popsicle Red ...........Wrapper
Popsicle Red ...........Red Juice
Red Juice ...............Red Dye
Red Juice ...............Grape Juice
...

When I pivot on Red Popsicle all I get is:
Stick
Wrapper
Red Juice

But I want:
Stick
Wrapper
Red Dye
Grape Juice

Is there a way to get there?

Thanks for the help!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi. There maybe alternatives but this works. I can only see how you could do it with helper columns not just from your data as stands. Take this table:

Parent Item (A)Component Item (B)Top Level Parent ItemParent & Component?
Popsicle RedStickPopsicle RedFALSE
Popsicle RedWrapperPopsicle RedFALSE
Popsicle RedRed JuicePopsicle RedTRUE
Red JuiceRed DyePopsicle RedFALSE
Red JuiceGrape JuicePopsicle RedFALSE

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

The formula i used in C2:

=IF(ISNUMBER(MATCH(A2,B:B,0)),INDEX(A:A,MATCH(A2,B:B,0)),A2)

In D2:

=ISNUMBER(MATCH(B2,A:A,0))

This table can be pivoted using the helper columns in the filter area of the pivot to produce:

Top Level Parent ItemPopsicle Red
Parent & Component?FALSE
Row Labels
Grape Juice
Red Dye
Stick
Wrapper
Grand Total

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top