A different kind of transpose

ascool_asice

New Member
Joined
May 4, 2007
Messages
13
Hi,

I have a worksheet with over 10K records which I would like to transpose in a specific manner... My original data looks like


Excel 2010
ABCDEFG
1[Page Title][ID][Name][Row 2][Part No_][Row4][Row 5]
2DocuPrint N17b1596XEROX DOCUPRINT N17 TONER BLACKGenuine Original XeroxPart No.: 113R00095BlackFits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17b
3DocuPrint N17b1597XEROX DOCUPRINT 4517 FUSER 110VGenuine Original XeroxPart No.: 108R00092Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17b
4DocuPrint N17b1598XEROX 4517 FUSER ASSEMBLYGenuine Original XeroxPart No.: 126K06051Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17b
5DocuPrint N17b1599XEROX DOCUPRINT 4517 FUSER / TRANSFER BIAS ROLLSGenuine Original XeroxPart No.: 108R93Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17b
6DocuPrint N17b1600XEROX 4517 TONER REMANLegacy Non-OEMPart No.: 113R95-REMANBlackFits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17b
7DocuPrint N17b1601XEROX N17 4517 DUPLEX OPTIONGenuine Original XeroxPart No.: 97K22660Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17b
8DocuPrint N17b1602XEROX 4517 PAPER DECK AND CASSETTE 500 SHEETSGenuine Original XeroxPart No.: 097K22680Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17b
9DocuPrint N21251603XEROX DOCUPRINT N2125 PRINT CTG 15KGenuine Original XeroxPart No.: 113R00446, X613BlackFits Models: DocuPrint N2125, DocuPrint N2125b
10DocuPrint N21251604XEROX DOCUPRINT N2125 PRINT CTG 10KGenuine Original XeroxPart No.: 113R445, X615BlackFits Models: DocuPrint N2125, DocuPrint N2125b
11DocuPrint N21251605XEROX N2125 MAINTENANCE KIT 110VGenuine Original XeroxPart No.: 108R00328BlackFits Models: DocuPrint N2125, DocuPrint N2125b
12DocuPrint N21251606XEROX N2125 MAINTENANCE KIT 110VGenuine Original XeroxPart No.: 126K10132Fits Models: DocuPrint N2125, DocuPrint N2125b
13DocuPrint N21251607XEROX N2125 MAINTENANCE KIT 220VGenuine Original XeroxPart No.: 108R329Fits Models: DocuPrint N2125, DocuPrint N2125b
14DocuPrint N21251608XEROX DOCUPRINT N2125 PRINT CTG REMANLegacy Non-OEMPart No.: 113R445-REMAN, 113R00446-REMANFits Models: DocuPrint N2125, DocuPrint N2125b
15DocuPrint N21251609XEROX DOCUPRINT N2125 FEED ROLLER KITGenuine Original XeroxPart No.: 108R330Fits Models: DocuPrint N2125, DocuPrint N2125b
16DocuPrint N21251610XEROX DOCUPRINT 2125 PAPER TRAYGenuine Original XeroxPart No.: 109R00448Fits Models: DocuPrint N2125, DocuPrint N2125b
17DocuPrint N2125b1611XEROX DOCUPRINT N2125 PRINT CTG 15KGenuine Original XeroxPart No.: 113R00446, X613BlackFits Models: DocuPrint N2125, DocuPrint N2125b
18DocuPrint N2125b1612XEROX DOCUPRINT N2125 PRINT CTG 10KGenuine Original XeroxPart No.: 113R445, X615BlackFits Models: DocuPrint N2125, DocuPrint N2125b
19DocuPrint N2125b1613XEROX N2125 MAINTENANCE KIT 110VGenuine Original XeroxPart No.: 108R00328BlackFits Models: DocuPrint N2125, DocuPrint N2125b
20DocuPrint N2125b1614XEROX N2125 MAINTENANCE KIT 110VGenuine Original XeroxPart No.: 126K10132Fits Models: DocuPrint N2125, DocuPrint N2125b
21DocuPrint N2125b1615XEROX N2125 MAINTENANCE KIT 220VGenuine Original XeroxPart No.: 108R329Fits Models: DocuPrint N2125, DocuPrint N2125b
22DocuPrint N2125b1616XEROX DOCUPRINT N2125 PRINT CTG REMANLegacy Non-OEMPart No.: 113R445-REMAN, 113R00446-REMANFits Models: DocuPrint N2125, DocuPrint N2125b
23DocuPrint N2125b1617XEROX DOCUPRINT N2125 FEED ROLLER KITGenuine Original XeroxPart No.: 108R330Fits Models: DocuPrint N2125, DocuPrint N2125b
24DocuPrint N2125b1618XEROX DOCUPRINT 2125 PAPER TRAYGenuine Original XeroxPart No.: 109R00448Fits Models: DocuPrint N2125, DocuPrint N2125b
25DocuPrint N241619XEROX DOCUPRINT N24 N32 N40 PRINT CTG BLACKGenuine Original XeroxPart No.: 113R173BlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
26DocuPrint N241620XEROX DOCUPRINT N24 N32 N40 TONER REMANLegacy Non-OEMPart No.: 113R173-REMANBlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
27DocuPrint N241621XEROX 108R158 STAPLE CARTRIDGEGenuine Original XeroxPart No.: 108R00158 (3 per box)Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025, DocuPrint N4525, DocuPrint N4525CN, DocuPrint N4525DX, DocuPrint N4525N
28DocuPrint N241622XEROX DOCUPRINT N24 N32 N40 MAINTENANCE KIT 110VGenuine Original XeroxPart No.: 109R00486Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
29DocuPrint N241623TROY XEROX DOCUPRINT N24 MICR TONER CART BLACKGenuine Original TroyPart No.: 02-81022-001BlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
30DocuPrint N241624XEROX DOCUPRINT N24 N40 TONER MICRLegacy Non-OEMPart No.: 113R173-MICRBlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
31DocuPrint N241625XEROX DP N24 FUSER ASSEMBLY 220VGenuine Original XeroxPart No.: 126K10024Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
32DocuPrint N241626XEROX DOCUPRINT N24 N32 N40 MAINTENANCE KITGenuine Original XeroxPart No.: 109R00348Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
33DocuPrint N241627XEROX DOCUPRINT N24 N32 N40 MAINTENANCE KITGenuine Original XeroxPart No.: 109R46Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
34DocuPrint N241628XEROX N24 N32 N40 MAINTENANCE KIT 220VGenuine Original XeroxPart No.: 109R487Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
35DocuPrint N241629XEROX DOCUPRINT N32 MAINTENANCE KIT EUGenuine Original XeroxPart No.: 109R00349Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
36DocuPrint N241630XEROX DOCUPRINT N24 N32 MAINTENANCE KIT 220VGenuine Original XeroxPart No.: 109R00047Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
37DocuPrint N241631FUJI XEROX DOCUPRINT N24 DRUM/TONER CARTRIDGE BLACKGenuine Original Fuji XeroxPart No.: X589, 113R162BlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
38DocuPrint N241632XEROX DOCUPRINT N24 N32 N40 TONER BLACKGenuine Original XeroxPart No.: 113R184BlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
39DocuPrint N241633XEROX DOCUPRINT N24 N32 N40 TONERGenuine Original XeroxPart No.: 113R162Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
40DocuPrint N241634CARTUCHO DE TONER 4524 / 4532 / 4540Genuine Original XeroxPart No.: 113M00452BlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
41DocuPrint N241635CARTUCHO DE TONER 4524 / 4532 / 4540Genuine Original XeroxPart No.: 113R00452BlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
42DocuPrint N241636CARTUCHO DE IMPRESSO S315 / S316 / S320 / S321Genuine Original XeroxPart No.: 113M70489Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
43DocuPrint N241637XEROX DOCUPRINT N24 N32 N40 TONER CARTRIDGE REMANLegacy Non-OEMPart No.: 113R184-REMANFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
44DocuPrint N241638XEROX DOCUPRINT N24 N40 TONER REMANGenuine Original XeroxPart No.: 113R162RFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
45DocuPrint N241639XEROX DOCUPRINT N24 N32 N40 REFILL BOTTLE 535GRGenuine Original XeroxPart No.: 113R173-REFILLBlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
46DocuPrint N241640XEROX DOCUPRINT N24 N32 N40 REFILL BOTTLE 1070GRGenuine Original XeroxPart No.: 113R00184-REFILLBlackFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
47DocuPrint N241641XEROX N24 BTR ASSEMBLYGenuine Original XeroxPart No.: 022K36343Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
Orignal



The below mentioned table shows the way it should actually look once the macro is run... I tried to record a macro however failed miserably in achieving this...


Excel 2010
ABCD
1DocuPrint N17bDocuPrint N2125DocuPrint N2125bDocuPrint N24
2XEROX DOCUPRINT N17 TONER BLACKXEROX DOCUPRINT N2125 PRINT CTG 15KXEROX DOCUPRINT N2125 PRINT CTG 15KXEROX DOCUPRINT N24 N32 N40 PRINT CTG BLACK
3Genuine Original XeroxGenuine Original XeroxGenuine Original XeroxGenuine Original Xerox
4Part No.: 113R00095Part No.: 113R00446, X613Part No.: 113R00446, X613Part No.: 113R173
5BlackBlackBlackBlack
6Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
7XEROX DOCUPRINT 4517 FUSER 110VXEROX DOCUPRINT N2125 PRINT CTG 10KXEROX DOCUPRINT N2125 PRINT CTG 10KXEROX DOCUPRINT N24 N32 N40 TONER REMAN
8Genuine Original XeroxGenuine Original XeroxGenuine Original XeroxLegacy Non-OEM
9Part No.: 108R00092Part No.: 113R445, X615Part No.: 113R445, X615Part No.: 113R173-REMAN
10BlackBlackBlack
11Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
12XEROX 4517 FUSER ASSEMBLYXEROX N2125 MAINTENANCE KIT 110VXEROX N2125 MAINTENANCE KIT 110VXEROX 108R158 STAPLE CARTRIDGE
13Genuine Original XeroxGenuine Original XeroxGenuine Original XeroxGenuine Original Xerox
14Part No.: 126K06051Part No.: 108R00328Part No.: 108R00328Part No.: 108R00158 (3 per box)
15BlackBlack
16Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025, DocuPrint N4525, DocuPrint N4525CN, DocuPrint N4525DX, DocuPrint N4525N
17XEROX DOCUPRINT 4517 FUSER / TRANSFER BIAS ROLLSXEROX N2125 MAINTENANCE KIT 110VXEROX N2125 MAINTENANCE KIT 110VXEROX DOCUPRINT N24 N32 N40 MAINTENANCE KIT 110V
18Genuine Original XeroxGenuine Original XeroxGenuine Original XeroxGenuine Original Xerox
19Part No.: 108R93Part No.: 126K10132Part No.: 126K10132Part No.: 109R00486
20
21Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
22XEROX 4517 TONER REMANXEROX N2125 MAINTENANCE KIT 220VXEROX N2125 MAINTENANCE KIT 220VTROY XEROX DOCUPRINT N24 MICR TONER CART BLACK
23Legacy Non-OEMGenuine Original XeroxGenuine Original XeroxGenuine Original Troy
24Part No.: 113R95-REMANPart No.: 108R329Part No.: 108R329Part No.: 02-81022-001
25BlackBlack
26Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
27XEROX N17 4517 DUPLEX OPTIONXEROX DOCUPRINT N2125 PRINT CTG REMANXEROX DOCUPRINT N2125 PRINT CTG REMANXEROX DOCUPRINT N24 N40 TONER MICR
28Genuine Original XeroxLegacy Non-OEMLegacy Non-OEMLegacy Non-OEM
29Part No.: 97K22660Part No.: 113R445-REMAN, 113R00446-REMANPart No.: 113R445-REMAN, 113R00446-REMANPart No.: 113R173-MICR
30Black
31Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
32XEROX 4517 PAPER DECK AND CASSETTE 500 SHEETSXEROX DOCUPRINT N2125 FEED ROLLER KITXEROX DOCUPRINT N2125 FEED ROLLER KITXEROX DP N24 FUSER ASSEMBLY 220V
33Genuine Original XeroxGenuine Original XeroxGenuine Original XeroxGenuine Original Xerox
34Part No.: 097K22680Part No.: 108R330Part No.: 108R330Part No.: 126K10024
35
36Fits Models: 4517 MP, DocuPrint 4517, DocuPrint N17, DocuPrint N17bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
37XEROX DOCUPRINT 2125 PAPER TRAYXEROX DOCUPRINT 2125 PAPER TRAYXEROX DOCUPRINT N24 N32 N40 MAINTENANCE KIT
38Genuine Original XeroxGenuine Original XeroxGenuine Original Xerox
39Part No.: 109R00448Part No.: 109R00448Part No.: 109R00348
40
41Fits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N2125, DocuPrint N2125bFits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
42XEROX DOCUPRINT N24 N32 N40 MAINTENANCE KIT
43Genuine Original Xerox
44Part No.: 109R46
45
46Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
47XEROX N24 N32 N40 MAINTENANCE KIT 220V
48Genuine Original Xerox
49Part No.: 109R487
50
51Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
52XEROX DOCUPRINT N32 MAINTENANCE KIT EU
53Genuine Original Xerox
54Part No.: 109R00349
55
56Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
57XEROX DOCUPRINT N24 N32 MAINTENANCE KIT 220V
58Genuine Original Xerox
59Part No.: 109R00047
60
61Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
62FUJI XEROX DOCUPRINT N24 DRUM/TONER CARTRIDGE BLACK
63Genuine Original Fuji Xerox
64Part No.: X589, 113R162
65Black
66Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
67XEROX DOCUPRINT N24 N32 N40 TONER BLACK
68Genuine Original Xerox
69Part No.: 113R184
70Black
71Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
72XEROX DOCUPRINT N24 N32 N40 TONER
73Genuine Original Xerox
74Part No.: 113R162
75
76Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
77CARTUCHO DE TONER 4524 / 4532 / 4540
78Genuine Original Xerox
79Part No.: 113M00452
80Black
81Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
82CARTUCHO DE TONER 4524 / 4532 / 4540
83Genuine Original Xerox
84Part No.: 113R00452
85Black
86Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
87CARTUCHO DE IMPRESSO S315 / S316 / S320 / S321
88Genuine Original Xerox
89Part No.: 113M70489
90
91Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
92XEROX DOCUPRINT N24 N32 N40 TONER CARTRIDGE REMAN
93Legacy Non-OEM
94Part No.: 113R184-REMAN
95
96Fits Models: DocuPrint N24, DocuPrint N24cn, DocuPrint N32, DocuPrint N3225, DocuPrint N32cn, DocuPrint N32fn, DocuPrint N33, DocuPrint N40, DocuPrint N4025
Formatted



It would be great if someone could help me..


Regards
HeemanshuC
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
It looks like a typical report writer problem.
I think it best suited for a report writer solution
Use your data as a database
Use a tool for writing reports and create yours using excel as a database
There are many free tools from Microsoft
Sergio
 
Upvote 0
It looks like a typical report writer problem.
I think it best suited for a report writer solution
Use your data as a database
Use a tool for writing reports and create yours using excel as a database
There are many free tools from Microsoft
Sergio


Hi Sergio,

Thanks for the prompt response, I tried looking on google however came out with nothing concrete..

Since I am quiet new to this it would be great if you could mention the names of a few tools..

Regards
HeemanshuC
 
Upvote 0
See if this gets you close.
Test in a copy of your workbook as the code deletes the original data!! :eek:
If this is not what you want, post back with further details (like where you want the results).

<font face=Courier New><br><SPAN style="color:#00007F">Sub</SPAN> Rearrange_Data()<br>  <SPAN style="color:#00007F">Dim</SPAN> a, b, ColWidth<br>  <SPAN style="color:#00007F">Dim</SPAN> rws <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, i <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, j <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, r <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br>  <SPAN style="color:#00007F">Dim</SPAN> maxitems <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, col <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br>  <br>  ColWidth = Split("25 25 25 75") <SPAN style="color:#007F00">'<- Final column widths. Change to suit</SPAN><br>  Application.ScreenUpdating = <SPAN style="color:#00007F">False</SPAN><br>  col = 0<br>  a = Range("A1", Range("G" & Rows.Count).End(xlUp)).Value<br>  rws = <SPAN style="color:#00007F">UBound</SPAN>(a, 1)<br>  maxitems = rws * 5 + 1<br>  <SPAN style="color:#00007F">ReDim</SPAN> b(1 <SPAN style="color:#00007F">To</SPAN> maxitems, 1 <SPAN style="color:#00007F">To</SPAN> 1)<br>  <SPAN style="color:#00007F">For</SPAN> i = 2 <SPAN style="color:#00007F">To</SPAN> rws<br>    <SPAN style="color:#00007F">If</SPAN> a(i, 1) <> a(i - 1, 1) <SPAN style="color:#00007F">Then</SPAN><br>      col = col + 1<br>      r = 1<br>      <SPAN style="color:#00007F">ReDim</SPAN> <SPAN style="color:#00007F">Preserve</SPAN> b(1 <SPAN style="color:#00007F">To</SPAN> maxitems, 1 <SPAN style="color:#00007F">To</SPAN> col)<br>      b(r, col) = a(i, 1)<br>    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br>    <SPAN style="color:#00007F">For</SPAN> j = 3 <SPAN style="color:#00007F">To</SPAN> 7<br>      r = r + 1<br>      b(r, col) = a(i, j)<br>    <SPAN style="color:#00007F">Next</SPAN> j<br>  <SPAN style="color:#00007F">Next</SPAN> i<br>  Range("J1").Resize(maxitems, col).Value = b<br>  Columns("A:I").Delete<br>  <SPAN style="color:#00007F">For</SPAN> j = 0 <SPAN style="color:#00007F">To</SPAN> <SPAN style="color:#00007F">UBound</SPAN>(ColWidth)<br>    <SPAN style="color:#00007F">With</SPAN> Columns(j + 1)<br>      .ColumnWidth = ColWidth(j)<br>      .WrapText = <SPAN style="color:#00007F">True</SPAN><br>    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN><br>  <SPAN style="color:#00007F">Next</SPAN> j<br>  Application.ScreenUpdating = <SPAN style="color:#00007F">True</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br></FONT>
 
Upvote 0
See if this gets you close.
Test in a copy of your workbook as the code deletes the original data!! :eek:
If this is not what you want, post back with further details (like where you want the results).

<font face=Courier New><br><SPAN style="color:#00007F">Sub</SPAN> Rearrange_Data()<br>**<SPAN style="color:#00007F">Dim</SPAN> a, b, ColWidth<br>**<SPAN style="color:#00007F">Dim</SPAN> rws <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, i <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, j <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, r <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br>**<SPAN style="color:#00007F">Dim</SPAN> maxitems <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, col <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br>**<br>**ColWidth = Split("25 25 25 75") <SPAN style="color:#007F00">'<- Final column widths. Change to suit</SPAN><br>**Application.ScreenUpdating = <SPAN style="color:#00007F">False</SPAN><br>**col = 0<br>**a = Range("A1", Range("G" & Rows.Count).End(xlUp)).Value<br>**rws = <SPAN style="color:#00007F">UBound</SPAN>(a, 1)<br>**maxitems = rws * 5 + 1<br>**<SPAN style="color:#00007F">ReDim</SPAN> b(1 <SPAN style="color:#00007F">To</SPAN> maxitems, 1 <SPAN style="color:#00007F">To</SPAN> 1)<br>**<SPAN style="color:#00007F">For</SPAN> i = 2 <SPAN style="color:#00007F">To</SPAN> rws<br>****<SPAN style="color:#00007F">If</SPAN> a(i, 1) <> a(i - 1, 1) <SPAN style="color:#00007F">Then</SPAN><br>******col = col + 1<br>******r = 1<br>******<SPAN style="color:#00007F">ReDim</SPAN> <SPAN style="color:#00007F">Preserve</SPAN> b(1 <SPAN style="color:#00007F">To</SPAN> maxitems, 1 <SPAN style="color:#00007F">To</SPAN> col)<br>******b(r, col) = a(i, 1)<br>****<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN><br>****<SPAN style="color:#00007F">For</SPAN> j = 3 <SPAN style="color:#00007F">To</SPAN> 7<br>******r = r + 1<br>******b(r, col) = a(i, j)<br>****<SPAN style="color:#00007F">Next</SPAN> j<br>**<SPAN style="color:#00007F">Next</SPAN> i<br>**Range("J1").Resize(maxitems, col).Value = b<br>**Columns("A:I").Delete<br>**<SPAN style="color:#00007F">For</SPAN> j = 0 <SPAN style="color:#00007F">To</SPAN> <SPAN style="color:#00007F">UBound</SPAN>(ColWidth)<br>****<SPAN style="color:#00007F">With</SPAN> Columns(j + 1)<br>******.ColumnWidth = ColWidth(j)<br>******.WrapText = <SPAN style="color:#00007F">True</SPAN><br>****<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN><br>**<SPAN style="color:#00007F">Next</SPAN> j<br>**Application.ScreenUpdating = <SPAN style="color:#00007F">True</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br></FONT>



Hi Peter,

Thanks for the code, I would actually need to retain the original data and would appreciate if you could help modify the code to suit my needs... It would be ideal if the code could create a new sheet with results
 
Upvote 0
It would be ideal if the code could create a new sheet with results
Just add the blue line of code where shown and edit it to match the sheet name the original data is on.
Rich (BB code):
  Application.ScreenUpdating = False
  Sheets("Original").Copy After:=Sheets("Original")
  col = 0
 
Upvote 0

Forum statistics

Threads
1,216,729
Messages
6,132,385
Members
449,725
Latest member
Enero1

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