Question:
Copying data in Excel from columns to rows?
Shermamoma
2011-06-24 07:15:08 UTC
I am exporting data from an old database to a new and improved one. Unfortunately, when the data was exported from the old database, it exported into two different Excel spreadsheets. One of the spreadsheets is organized by rows (ie. name, address, city, state, zip, etc.) while the second spreadsheet is organized by columns (ie. first row: first payment, date entered, type; second row: second payment, date entered, type and so on). One customer could have more than 5 rows of payments listed in the Excel spreadsheet. The one saving grace is that the account number matches the customer and all payments made to the company. My problem is that I need to get all the information on the same row, so that the new database recognizes the information is intended to stay with that customer. Am I making sense? Is there an Excel macro that I may be able to use to match the customer number to pull the information into the same row? Or is it just going to have to be manually done?
Four answers:
Scrawny
2011-06-24 08:45:11 UTC
It sounds like you are transferring from a relational database to Excel. If this is the case, it isn't a good move.



If you still have the database, create a report to export that has Name, Address, City, State, Zip, Payment, Date, Type etc....



This will combine the two tables and export as a "flat" database that can be directly imported into Excel with little or no modification involved.



If by chance you are upgrading databases, install the new database and import your data from the old database into the new database.



For a small amount of data, what you are trying to do is ok but for a large amount of data it is a waste of time and will do nothing but create headaches in the future.



You have a misconception of how the data is organized. The first Excel sheet IS column organized. It has labels for each column and each record in the sheet is a row in the worksheet. Each record (row) in the first sheet just happens to be a person with their particulars. The second sheet is organized the same way as the first sheet with labels on each column and each row represents a record. The records of the first sheet are tied to the second sheet via the Account Numbers. This makes the database a "Relational" database as the tables are related to each other via the Account Numbers. Having data organized this way saves a lot of space and eliminates a lot of errors as the account information for each individual doesn't have to be repeated for each and every transaction for the account.



Having said that, you can use Excel to do what you want by creating a VLOOKUP table using the Personal information in the first sheet as the VLOOKUP TABLE organized by the Account Number (account number in the first column). Then you would have in your main sheet with all the transactions a series of VLOOKUP formulae to lookup the personal information required by the transaction by just entering the Account number which would then bring all the personal information into the sheet that has the transactions.
?
2016-11-29 15:09:37 UTC
definite, you could. Please stick to the stairs. flow archives between rows and columns replica the archives in one or extra columns or rows. earlier you paste the copied archives, properly suited-click your first trip spot cellular (the 1st cellular of the row or column into which you opt for to stick your archives), and then click Paste specific. interior the Paste specific communique container, opt for Transpose, and then click ok. you will locate theTranspose examine container interior the decrease-properly suited corner of the communique container: commencing including your first cellular, Excel pastes the archives right into a row or column.
TW
2011-06-24 07:17:58 UTC
Use a vlookup they are pretty simple to master, check out YouTube for a tutorial
Jony
2011-06-24 07:20:54 UTC
i am not sure if it will solve your problem.



copy the data from one sheet

then give paste special command. when new window comes, select transpose. select ok.

then columns should be arranged in rows.



if it solves ur problem then select this as best answer


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...