PC Review


Reply
Thread Tools Rate Thread

Converting Horizontal to Vertical, CSV dumps too?

 
 
JNation Rocks!
Guest
Posts: n/a
 
      19th Feb 2007
I've got a unique issue. Someone sent me a spreadsheet that I'm trying
to put into a database (mysql) and i figured i could import it as a
csv file into mysql. But instead of them putting in data vertically
with the entries going down the numbers, they did it horizontally. To
explain, they did:

HORIZONTAL

Name John David
Tel 12345 45677
Zip 10001 10002

instead of VERTICAL

Name Tel Zip
John 12345 10001
David 45677 10002


So now I don't know if excel will handle all the records or could be
exported into a csv file properly. Vertical will list records properly
in a csv file, e.g.
1, John, 12345, 10001
2, David, 45677, 10002

But doing a csv dump with #2 will yield
1, John, David
2, 12345, 45677
3,10001, 10002

So what can I do to correct this? As the data is in cells, I'm
thinking there is some function that should be able to fix this...


 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      19th Feb 2007
It depends on the number of records.
If there aren't too many (or if you happen to have Excel2007), you can copy the data and then Paste Special and check Transpose.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"JNation Rocks!" <tkdin_NO_SPAM_thecity@Ya_NO_S_P_AM_hoo.com> wrote in message news:(E-Mail Removed)...
| I've got a unique issue. Someone sent me a spreadsheet that I'm trying
| to put into a database (mysql) and i figured i could import it as a
| csv file into mysql. But instead of them putting in data vertically
| with the entries going down the numbers, they did it horizontally. To
| explain, they did:
|
| HORIZONTAL
|
| Name John David
| Tel 12345 45677
| Zip 10001 10002
|
| instead of VERTICAL
|
| Name Tel Zip
| John 12345 10001
| David 45677 10002
|
|
| So now I don't know if excel will handle all the records or could be
| exported into a csv file properly. Vertical will list records properly
| in a csv file, e.g.
| 1, John, 12345, 10001
| 2, David, 45677, 10002
|
| But doing a csv dump with #2 will yield
| 1, John, David
| 2, 12345, 45677
| 3,10001, 10002
|
| So what can I do to correct this? As the data is in cells, I'm
| thinking there is some function that should be able to fix this...
|
|


 
Reply With Quote
 
Vergel Adriano
Guest
Posts: n/a
 
      19th Feb 2007
1. Select the entire range of your horizontal data.
2. Press CTRL-C to copy.
3. Go to another worksheet in your workbook.
4. Edit->Paste Special and make sure you check the "Transpose" check box.

Now you have your data in the VERTICAL format and do your CSV dump.



"JNation Rocks!" <tkdin_NO_SPAM_thecity@Ya_NO_S_P_AM_hoo.com> wrote in
message news:(E-Mail Removed)...
> I've got a unique issue. Someone sent me a spreadsheet that I'm trying
> to put into a database (mysql) and i figured i could import it as a
> csv file into mysql. But instead of them putting in data vertically
> with the entries going down the numbers, they did it horizontally. To
> explain, they did:
>
> HORIZONTAL
>
> Name John David
> Tel 12345 45677
> Zip 10001 10002
>
> instead of VERTICAL
>
> Name Tel Zip
> John 12345 10001
> David 45677 10002
>
>
> So now I don't know if excel will handle all the records or could be
> exported into a csv file properly. Vertical will list records properly
> in a csv file, e.g.
> 1, John, 12345, 10001
> 2, David, 45677, 10002
>
> But doing a csv dump with #2 will yield
> 1, John, David
> 2, 12345, 45677
> 3,10001, 10002
>
> So what can I do to correct this? As the data is in cells, I'm
> thinking there is some function that should be able to fix this...
>




----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Vertical Data into Horizontal Data Kiley Microsoft Excel Misc 0 29th Mar 2010 04:40 PM
Reformattign Data/Converting-Combinign Vertical Data to Horizontal Tunderwood Microsoft Excel Worksheet Functions 1 17th Mar 2008 04:20 PM
converting vertical data list to horizontal data list =?Utf-8?B?dGpi?= Microsoft Excel Worksheet Functions 2 15th Jul 2006 02:17 AM
Converting a large vertical mailing list into a horizontal format =?Utf-8?B?S2V2aW4gVmFuSGFsZW4=?= Microsoft Excel New Users 1 30th Apr 2005 12:23 PM
Converting horizontal data to vertical data. dwight Microsoft Excel Discussion 2 27th Aug 2003 08:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 AM.