paste special (transpose) based on common cell contents

Pie Captain

New Member
Joined
Dec 18, 2009
Messages
1
Hi All,
First of all I'd like to apologise if this has been answered elsewhere, i have searched, but haven't been able to find a solution. Some might come close, but I have no VBA experience (yet!), so I'm not sure how to customise previous answers to suit.

Anyway, here goes...

I have a spreadsheet with the following columns…

Sequence PR Data1 Data2 Data3

I need to be able to do a copy / paste special:transpose based in the information in the Sequence column
So that all Rows with a matching sequence number are combined, note that for constant values of sequence, PR, Data1 and Data2 are constant, it's just the Data3 column that needs to be transposed and then the superflous rows deleted.

Eg.

Sequence PR Data1 Data2 Data3
1 33 Jam bread potato
1 33 Jam bread orange
1 33 Jam bread tomato
2 44 Banana crisp cabbage
2 44 Banana crisp cheese

Should be..

Sequence PR Data1 Data2 Data3
1 33 Jam bread potato orange tomato
2 44 Banana crisp cabbage cheese

Sorry I can't include the actual spreadsheet, but the data is sensitive. Hopefully my example makes sense, but please let me know if you need more info.

Many thanks in advance!

Paul
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
This is do-able in a roundabout way with helper columns.
Is that an option for you ?
If it IS, can you confirm please that all these data elements are in separate columns ?
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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