Need help re-arranging data within a file automatically

stubs

New Member
Joined
Apr 5, 2006
Messages
41
Please can anyone help me?
I have a file containing data about 300+ people. Each person has 3 fields of data and the worksheet is currently laid out like this:

1. User name
2. Full Name
3. Comment
4.
5.
6. User name
7. Full Name
8. Comment
9.
10.
.....

...in column A, with the respective data in column B.[/i]


I would like the data to be re-arranged so that column A contains all the "User name" data, column B contains the "Full Name" data, and column C contains the "Comment" data, with each row reprsenting a different person.. i.e.

1. Alessio Lobascio | EDAL2282 | FM Chivasso
2. Alberto Sismondi | EDAS2312 | FM Chivasso
3. Diego Sandiano | EDDS2465 | FM Chivasso
4. Fiorella D'Appollonio | EDFD1267 | FM Chivasso
....


Is there a quick way of doing this, possibly with a Macro, or some rule?..
Cheers,
Stu
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi Stu

Whith the layout in the example, write in D2:

Code:
=INDEX($B:$B,5*(ROWS($B$1:D2)-2)+COLUMNS($D2:D2))
Copy accross to E:F and down

Then copy, paste special values D:F and delete A:C.

Hope this helps
PGC
Book1
ABCDEFG
1UserNameSmithKUserNameFullnameComments
2FullnameKarenSmithSmithKKarenSmithUser
3CommentsUserDoeJJohnDoeGuest
4WellsFFrankWellsAdministrator
5WhiteMMaryWhiteUser
6UserNameDoeJ
7FullnameJohnDoe
8CommentsGuest
9
10
11UserNameWellsF
12FullnameFrankWells
13CommentsAdministrator
14
15
16UserNameWhiteM
17FullnameMaryWhite
18CommentsUser
19
Sheet1
 
Upvote 0
Thankyou SO much for your reply.. it worked a treat, and I have learnt from it also.


Cheers! :LOL:
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,351
Members
449,155
Latest member
ravioli44

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