Database in Columns need rows

Hopper

New Member
Joined
Dec 25, 2002
Messages
38
Hi!
I need to take my database dump from columns to rows. I have had no luck coming up with a way.

Thanks
Hopper


Sample
Book2
ABCDEFGHI
1141Data1
2142Data2
3143Data3
4144Data4
5145Data5
6146Data6
7147Data7
8148Data8
9
10NewFormat
1114Data1Data2Data3Data4Data5Data6Data7Data8
Sheet1
 
you could always copy -> paste special -> transpose.

or are you looking for a formula based approach??
 
Upvote 0
I tried to do that but a had no luck. There are 1500 rows of data and it did not match.

Maybe I did something wrong????
 
Upvote 0
Hopper said:
I tried to do that but a had no luck. There are 1500 rows of data and it did not match.

Maybe I did something wrong????

this being the case, your original post may be a little ambiguous as to what you are trying to accomplish. can you post a little more information on what you are trying to accomplish?
 
Upvote 0
Ok -
The example I posted is just one record. There are 440 records each with 8 fields. The first column is the record number, the second column is the field number and then the third column is the actual data

Does this make sense?

Sorry for confusion.

Hopper!
 
Upvote 0
Disregard my previous post:

If the next set of records starts on A9 and goes down this will work.

The following will be in Sheet2! of the same workbook:

in A1 =INDIRECT(ADDRESS(ROW(Sheet1!A1)+J1,COLUMN(Sheet1!A1),,,"sheet1"))

in B1 =INDIRECT(ADDRESS(ROW(Sheet1!C1)+J1,COLUMN(Sheet1!C1),,,"sheet1"))

in C1 =INDIRECT(ADDRESS(ROW(Sheet1!C2)+J1,COLUMN(Sheet1!C2),,,"sheet1"))

in D1 =INDIRECT(ADDRESS(ROW(Sheet1!C3)+J1,COLUMN(Sheet1!C3),,,"sheet1"))

in E1 =INDIRECT(ADDRESS(ROW(Sheet1!C4)+J1,COLUMN(Sheet1!C4),,,"sheet1"))

in F1 =INDIRECT(ADDRESS(ROW(Sheet1!C5)+J1,COLUMN(Sheet1!C5),,,"sheet1"))

in G1 =INDIRECT(ADDRESS(ROW(Sheet1!C6)+J1,COLUMN(Sheet1!C6),,,"sheet1"))

in H1 =INDIRECT(ADDRESS(ROW(Sheet1!C7)+J1,COLUMN(Sheet1!C7),,,"sheet1"))

in I1 =INDIRECT(ADDRESS(ROW(Sheet1!C8)+J1,COLUMN(Sheet1!C8),,,"sheet1"))

Then select A1 thru I1 and drag down as far as needed.

For this to work you have to have 0 in J1, 7 in J2, 14 in J3, ... just series fill these down as far as needed (with 0 in J1 and 7 in J2, highlight both and drag down as far as needed with fill handle)

:beerchug:
Paul
 
Upvote 0
Hopper said:
Ok -
The example I posted is just one record. There are 440 records each with 8 fields. The first column is the record number, the second column is the field number and then the third column is the actual data

Does this make sense?

Sorry for confusion.

Hopper!
Hi Hopper:

From what you have posted, the data forms one record in the new format -- just to be clear about what your data looks like, how about if you post the data what would constitute record number 2, 3, and so on.
 
Upvote 0
Pictures to go with my post above
columntorowsformula.xls
ABCD
1141data1
2142data2
3143data3
4144data4
5145data5
6146data6
7147data7
8148data8
9151data1
10152data2
11153data3
12154data4
13155data5
14156data6
15157data7
16158data8
Sheet1


and Sheet2

Paul
 
Upvote 0
Hi Paul:

That is what I had thought what Hopper's data would look like -- but I wanted Hopper to confirm it -- to alleviate ambiguity -- althouh the confusion had been alleviated earlier!
 
Upvote 0

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