pasted data from a pivot table transposed to two columns

C Goody

New Member
Joined
Oct 11, 2013
Messages
13
Hi There, please can someone put me out of my misery as I am scratching my head on this.

I was sent a worksheet that was basically pasted values from a pivot table, the problem I have is that the header and subheading are duplicating the qty values and i need to display them differently or transpose them

example here

PRODUCTQTY
PRODUCT A3
product a description3
PRODUCT B1
product b description1
PRODUCT C1
product c description1
PRODUCT D1
product d description1
PRODUCT E1
product e description1
PRODUCT F9
product f description9
PRODUCT G33
product g description33
PRODUCT H1
product h description1
PRODUCT I2
product i description2
PRODUCT J2
product j description2
PRODUCT K2
product k description2
PRODUCT L4
product l description4

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

I need to display the product title and description in adjacent cells as below

PRODUCTPRODUCT DESCRIPTIONQTY
PRODUCT Aproduct a description3
PRODUCT Bproduct b description1
PRODUCT Cproduct c description1
PRODUCT Dproduct d description1
PRODUCT Eproduct e description1
PRODUCT Fproduct f description9
PRODUCT Gproduct g description33
PRODUCT Hproduct h description1
PRODUCT Iproduct i description2
PRODUCT Jproduct j description2
PRODUCT Kproduct k description2
PRODUCT Lproduct l description4

<colgroup><col span="2"><col></colgroup><tbody>
</tbody>

Has anyone got any suggestions that may help, I feel it may not be as simple as I am thinking and may need some VBA coding

thanks for the help
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
This can be done easily with formulas:


Excel 2010
ABCD
1PRODUCTQTY
2PRODUCT A3product a description0
3product a description3PRODUCT B1
4PRODUCT B1product b description0
5product b description1PRODUCT C1
6PRODUCT C1product c description0
7product c description1PRODUCT D1
8PRODUCT D1product d description0
9product d description1PRODUCT E1
10PRODUCT E1product e description0
11product e description1PRODUCT F1
12PRODUCT F9product f description0
Sheet5 (2)
Cell Formulas
RangeFormula
C2=A3
D2=MOD(ROW(A2),2)


then sort.

(If you actually have the word "description" or some other consistent term, ctrl-h with a wildcard to blank them out, then F5 and delete the rows)
 
Upvote 0
Perfect. thanks for that, often the easiest of solutions we tend to overthink

much appreciated


This can be done easily with formulas:

Excel 2010
ABCD
1PRODUCTQTY
2PRODUCT A3product a description0
3product a description3PRODUCT B1
4PRODUCT B1product b description0
5product b description1PRODUCT C1
6PRODUCT C1product c description0
7product c description1PRODUCT D1
8PRODUCT D1product d description0
9product d description1PRODUCT E1
10PRODUCT E1product e description0
11product e description1PRODUCT F1
12PRODUCT F9product f description0

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5 (2)

Worksheet Formulas
CellFormula
C2=A3
D2=MOD(ROW(A2),2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



then sort.

(If you actually have the word "description" or some other consistent term, ctrl-h with a wildcard to blank them out, then F5 and delete the rows)
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

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