formatting issue

K2Rider57

New Member
Joined
Dec 17, 2004
Messages
2
I'm new to the group and am having a bit of a reformatting issue. I have a long list of data that is grouped like this

A 1
B 10
C 16
D New
E Y

A 11
B 6
C 31
D Old
E Y

....
and I want it to look like this
A B C D E
1 10 16 New Y
11 6 31 Old Y

...

and the list is long so I can't just do it by hand

thanks for the help
K2Rider57 :biggrin:
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Two things...

You'll need to save this Macro to the workbook...

http://www.vbaexpress.com/kb/getarticle.php?kb_id=8

then you need to set it up with the ABCDE at the top and numbers down the left side as to how many lists you have.

Here's a sample:
Book13
ABCDEFGHI
1NAMEDATAABCDE
2A1111016NewY
3B10211631OldY
4C16312518OldN
5DNew4532NewY
6EY
7
8A11
9B6
10C31
11DOld
12EY
13
14A12
15B5
16C18
17DOld
18EN
19
20A5
21B3
22C2
23DNew
24EY
Sheet1


Replace the range in formulas as desired. I renamed the formula "vlookupnthT" but you can just use what's on the code which is "vlookupnth".

Good luck.
 
Upvote 0

Forum statistics

Threads
1,215,440
Messages
6,124,882
Members
449,193
Latest member
PurplePlop

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