Transpose Rows to Columns

gzell

New Member
Joined
Apr 20, 2019
Messages
37
In the worksheet Column G is data Designation and Column H is data that goes with Column G. on each row. I need help in converting rows below row 1_12 for each individual soldier in column G to columns on new worksheet. The original rows have a Data_ID that corresponds with Data in Column G and H, not sure if this would help in the conversion.. Step one would include the rows with Data following Data_ID 1_12 (Column G) these would be moved to another worksheet and transposed to columns. Column H would then be moved to the new worksheet and the data entry would be placed on rows below the corresponding Column in step one.

Number of entries will be different for each soldier.

Worksheet has 1145 Soldiers and with 27486 rows of data.

Is this possible?

Original Worksheet

A B C D E F G H
Row_IDPerson_ID
Last Name​
First Name​
Middle​
Data_ID​
Research Data​
1
21
Able​
Ezekiel​
1_1​
Army​
Confederacy​
31
1_2​
Location​
Texas​
41
1_3​
Regiment​
10th Regiment Texas Infantry (Nelson's)​
51
1_4​
Function​
Infantry​
61
1_5​
Company​
C​
71
1_6​
Rank​
Private​
81
1_7​
Age​
--​
91
1_8​
Residence​
--​
101
1_9​
Enrolled​
Buchanan, Johnson County, Texas​
111
1_10​
Date​
October 16, 1861​
121
1_11​
Enlisted​
Houston, Texas​
131
1_12​
Date​
October 25, 1861​
141
2_1​
Detail​
Hospital Nurse​
151
2_1​
Detail​
November 8, 1862​
161
3_1​
Relieved of Duty​
Nurse​
171
3_1​
Date​
February 4, 1862​
181
4_1​
Captured​
Battle of Arkansas Post​
191
4_1​
Date​
January 11, 1863​
201
4_2​
Forwarded​
St. Louis, Missouri via Boats​
211
4_3​
Forwarded​
Camp Douglas, Illinois via Rail​
221
4_4​
Prisoner​
Camp Douglas, Illinois​
231
4_5​
Died​
March 7, 1863​
241
4_5​
Cause​
Small Pox​
25
262
Adams​
John​
H​
1_1​
Army​
Confederacy​
272
1_2​
Location​
Texas​
282
1_3​
Regiment​
10th Regiment Texas Infantry (Nelson's)​
292
1_4​
Function​
Infantry​
302
1_5​
Company​
I​
312
1_6​
Rank​
Corporal​
322
1_7​
Age​
42​
332
1_8​
Residence​
Johnson County, Texas​
342
1_9​
Enlisted​
Kimball Texas or Millican, Texas​
352
1_10​
Date​
January 16, 1862​
362
2_1​
Captured​
Battle Arkansas Post, Arkansas​
372
2_1​
Date​
January 11, 1863​
382
2_1​
Forwarded​
St. Louis, Missouri via Boats​
392
2_1​
Forwarded​
Camp Douglas, Illinois via Rail​
402
2_1​
Prisoner​
Camp Douglas, Illinois​
412
2_1​
Forwarded for Exchanged​
City Point, Virginia​
422
2_1​
Date​
April 10, 1863​
432
2_10​
Hospital​
Sick​
442
2_10​
Location​
Kingston, Georgia​
452
2_10​
Date​
March 22, 1864​
462
2_1​
Captured​
Franklin, Tennessee​
472
2_1​
Date​
November 30, 1864​
482
2_1​
Forwarded​
Nashville, Tennessee​
492
2_1​
Forwarded​
Louisville, Kentucky​
502
2_1​
Arrived​
December 3 1864​
512
2_1​
Forwarded​
Camp Douglas, Illinois​
522
2_1​
Date​
December 3, 1863​
532
2_1​
Arrived​
December 6, 1863​
542
13_1​
Discharged​
Per G.O. No. 109, A.G.O.​
552
13_1​
Date​
June 18, 1865​
573
Adams​
Peter​
L​
1_1
Army​
Confederacy
5831_2
Location​
Texas
5931_3
Regiment​
10th Regiment Texas Infantry (Nelson's)
6031_4
Function​
Infantry
6131_5
Company​
D
6231_6
Rank​
Private
6331_7
Age​
--
6431_8
Residence​
--
6531_9
Enrolled​
Fairfield, Freestone County, Texas
6631_10
Date​
October 26, 1861
6731_11
Enlisted​
Hempstead, Texas
6831_12
Date​
October 31 1863
69310_1
Absent​
January 1862-April 1864
70311_1
Transferred​
Refugees from Arkansas Post
71311_1
Unit​
Company L, 8th Regiment Texas Infantry, Young's Regiment
72311_1
Date​
February 3, 1863

New Worksheet would look like this

Person_ID
Last Name​
First Name​
Middle​
Detail​
Date​
Relieved of Duty​
Date​
Captured​
Date​
Forwarded​
Forwarded​
Prisoner​
Died​
Cause​
Forwarded for Exchanged​
Date​
Hospital​
Location​
Date​
Captured​
Date​
Forwarded​
Forwarded​
Arrived​
Forwarded​
Date​
Arrived​
Discharged​
Date​
Absent​
Transferred​
Unit​
Date​
1
Able​
Ezekiel​
Hospital NurseNovember 8, 1862NurseFebruary 4, 1862Battle of Arkansas PostJanuary 11, 1863St. Louis, Missouri via BoatsCamp Douglas, Illinois via RailCamp Douglas, IllinoisMarch 7, 1863Small Pox
2
Adams​
John​
H​
Battle Arkansas Post, ArkansasJanuary 11, 1863St. Louis, Missouri via BoatsCamp Douglas, Illinois via RailCamp Douglas, IllinoisCity Point, VirginiaApril 10, 1863SickKingston, GeorgiaMarch 22, 1864Franklin, TennesseeNovember 30, 1864Nashville, TennesseeLouisville, KentuckyDecember 3 1864Camp Douglas, IllinoisDecember 3, 1863December 6, 1863Per G.O. No. 109, A.G.O.June 18, 1865
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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