Transforming a text file to a database

Click For Summary

Discussion Overview

The discussion revolves around transforming a text file containing contact information into a structured format, specifically separating details into different columns. The scope includes practical applications of software tools for data manipulation and organization.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant inquires about programs that can separate contact details from a text file into different columns.
  • Another participant suggests using Microsoft Excel's import wizard to remove delimiters and convert the text file into a spreadsheet format.
  • It is proposed that Open Office can also perform similar functions through its own import features.
  • A later reply mentions that including the term 'parse' in search queries can yield helpful resources for processing text files.
  • Several participants share their experiences successfully using Excel to open and format the text file, noting that the process can vary slightly depending on the software version.

Areas of Agreement / Disagreement

Participants generally agree on the effectiveness of Excel and Open Office for this task, but there is no consensus on a single best method or tool, as different software options and user experiences are discussed.

Contextual Notes

Limitations include potential variations in software versions and user familiarity with the tools, which may affect the ease of use and results.

adjacent
Gold Member
Messages
1,552
Reaction score
62
I have a list of contacts like this:
Code:
Name ,Address:House ,Island ,Atoll 	7777777
Name ,Address:House ,Island ,Atoll 	7777777
Name ,Address:House ,Island ,Atoll 	7777777
I have a large number of these and I want the details to be separated to different columns. Is there any program which will do this for me?

I tried searching google and got nothing.
:confused:
 
Computer science news on Phys.org
Microsoft Excel's "import wizard" (which you get automatically when you open a text file in Excel) can be used to remove the commas and the colon, and open the file as a spreadsheet. Then you can save it as a tab-delimited text file if that's more suitable for you than an Excel spreadsheet.

The Open Office clone of Excel might have a similar import wizard.
 
  • Like
Likes   Reactions: 1 person
Yes, you can do it with Open Office. Open a new spreadsheet and on the main menu click "Insert". Then click "Sheet From File". A dialog box will appear where you can select what delimiters you want to use.
 
Last edited:
  • Like
Likes   Reactions: 1 person
adjacent said:
I have a list of contacts like this:
Code:
Name ,Address:House ,Island ,Atoll 	7777777
Name ,Address:House ,Island ,Atoll 	7777777
Name ,Address:House ,Island ,Atoll 	7777777
I have a large number of these and I want the details to be separated to different columns. Is there any program which will do this for me?

I tried searching google and got nothing.
:confused:
If you include the word 'parse' in your search, you will get lots of hits - how to parse a text file.
But, as posted, Excel is quick and easy.
 
  • Like
Likes   Reactions: 1 person
Oh, I didn't know Excel was that great :smile:. I think I should learn MS office products more.

Thanks guys.
 
I was able to open and fix up your small sample (after copy-and-pasting it into a text file) as I described it, using Excel for Mac 2011. The details may differ for you depending on which version you have, but it took me only a couple of minutes to figure it out in the "wizard."
 
jtbell said:
I was able to open and fix up your small sample (after copy-and-pasting it into a text file) as I described it, using Excel for Mac 2011. The details may differ for you depending on which version you have, but it took me only a couple of minutes to figure it out in the "wizard."

Yeah, I got it done too.I opened the text file in excel and the wizard opened :smile:
 

Similar threads

Replies
10
Views
3K
Replies
65
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 22 ·
Replies
22
Views
3K
Replies
4
Views
2K
  • · Replies 50 ·
2
Replies
50
Views
9K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
8K