Who's up for a challenge? Extract the pivot table text in the proper way

DigitalZugzwang

New Member
Joined
Jul 27, 2017
Messages
20
Here's the situation. I have a pivot table the presents all the information I need. Now I need to extract the information in a particular way to "concatenate" on to one line based on a condition with a particular format. An example of the table is below.

SiteActivityComponent
OMGInstallAntenna
Line
Radio
InspectionPIM
DecommissionRadio
TestInstallRadio
InspectionPIM

<tbody>
</tbody>

In the above example I would need two lines returned, one per site. So it would look like this:

For OMG - Install: Antenna, Line, Radio; Inspection: PIM; Decommission: Radio
For Test - Install: Radio; Inspection: PIM

I'm open to any way to get this done. I've thought about using TEXTJOIN with an array (not sure how to pull it off) but some users of this spreadsheet will not have excel 2016. Any ideas?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Here's the situation. I have a pivot table the presents all the information I need. Now I need to extract the information in a particular way to "concatenate" on to one line based on a condition with a particular format. An example of the table is below.

SiteActivityComponent
OMGInstallAntenna
Line
Radio
InspectionPIM
DecommissionRadio
TestInstallRadio
InspectionPIM

<tbody>
</tbody>

In the above example I would need two lines returned, one per site. So it would look like this:

For OMG - Install: Antenna, Line, Radio; Inspection: PIM; Decommission: Radio
For Test - Install: Radio; Inspection: PIM

I'm open to any way to get this done. I've thought about using TEXTJOIN with an array (not sure how to pull it off) but some users of this spreadsheet will not have excel 2016. Any ideas?

assuming the data is in columns A:C:

D2 = =IF(A2="",D1,A2)
E2 = IF(B2="",E1,B2)
F2 = IF(AND(D2<>D1,B2<>E1),E2&": "&C2,IF(E2<>E1,F1&"; "&E2&": "&C2,F1&", "&C2))

drag all formulas down
 
Upvote 0

Forum statistics

Threads
1,213,552
Messages
6,114,278
Members
448,559
Latest member
MrPJ_Harper

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