From Calc to Base

Discuss the database features
Post Reply
desdichato
Posts: 87
Joined: Wed Jul 22, 2009 10:44 am

From Calc to Base

Post by desdichato »

Hello all,

I have a number of spreadsheets that are rapidally becoming large and cumbersome so I would like to put the into Base, last time I did anything like this was about 15 years ago was at an adult learning class and that was with the oppositions software.

Everything I have tried regarding transferring the data across from the spreadsheets to Database has ended up in a single cell.

Is there anyway I can get all my data across preferably without having to retype everything????

Any suggestions?

Thanks

P
OOo 4.1.3 on 8.1
path32
Posts: 136
Joined: Tue Oct 11, 2011 5:44 am
Location: Philippines

Re: From Calc to Base

Post by path32 »

Hi..

Yes..
1.) Create a database
2.) Register it by
[from base]
Tools> Option> Open Office.org Base> Databases> New [then your database path]
3.) Set a ColumnName From Spreadsheet (Sample EmployeeName then your data)
From Spreasheet press F4
4.) Copy the columns that you want to copy
5.) Drag it to your table
Apache Open Office 3.4, 4.0, HSQLDB 1.8(non embedded database) Windows 7, UBUNTU 10.04
User avatar
DACM
Volunteer
Posts: 1138
Joined: Tue Nov 03, 2009 7:24 am

Re: From Calc to Base

Post by DACM »

We seem to be getting a bunch of similar questions lately so I've begun compiling a list of the answers:
Spreadsheets to Base and back
AOO 4.1.x; LO 4.2.x; Windows 7/8 64-bit
Warning: Avoid embedded databases --> Solution: Adopt a portable 'split database' folder
Soli Deo gloria
desdichato
Posts: 87
Joined: Wed Jul 22, 2009 10:44 am

Re: From Calc to Base

Post by desdichato »

Thanks Path 32 and DACM,

I have tried both these suggestion and have been unsuccesful...I'm actually wondering whether it may a computer problem as at the moment I am using a notebook.

Thanks again guys

P
OOo 4.1.3 on 8.1
User avatar
RoryOF
Moderator
Posts: 35063
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: From Calc to Base

Post by RoryOF »

It shouldn't be a computer problem, as OpenOffice doesn't know what sort of computer it is running on. Make a simple spreadsheet of three or four lines and two or three columns, and try with that.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: From Calc to Base

Post by Villeroy »

desdichato wrote:Hello all,

I have a number of spreadsheets that are rapidally becoming large and cumbersome so I would like to put the into Base, last time I did anything like this was about 15 years ago was at an adult learning class and that was with the oppositions software.
Use pencil and paper to plan your database.
Check the consistency of your sheet data against your plan and fix all inconsistancies (missing data, wrong data types, orphaned relations).
Create the empty database as a complete skeleton to import valid row sets of raw data.
You might need temporary tables for the raw sheet data and later run SQL INSERTs in order to fill detail tables from imported data. If you are familiar with spreadsheets you may be able to use the spreadsheet for creation of foreign keys.

A few spreadsheet formulas should help to find inconsistencies and determin the right field types for the database:
=COUNT(A$2:A$999)=ROWS(A$2:A$999) returns TRUE when there are only numbers without gaps in A2:A999
=COUNTA(A$2:A$999)=ROWS(A$2:A$999) same with any content text or number
=MAX(LEN(A$2:A$999)) [entered as array with Ctrl+Shift+Enter instead of Enter] returns the maximum text lenght in A2:A999
=ISNUMBER(MATCH($A2;other_column;0)) returns TRUE if the id in $A2 has at least one counterpart in some other column.
=COUNTIF($A$2:$A$999;$A2)=1 tests if the id in A2 is unique within A2:A999

By the way: Base is not a database. It can be connected to many different types of relational databases. The above outlined data transfer can be used with any type of writable data source once it has been connected to a Base document.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
myrmidon
Posts: 5
Joined: Sat Jan 21, 2012 12:11 pm

Re: From Calc to Base

Post by myrmidon »

I need to do almost the same thing but backwards (I need to use Calc to populate data in Base). If I build Calc to match the existing Base file I should be good to go right?
Open Office v. 3 on Mac Lion
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: From Calc to Base

Post by Villeroy »

Drag the icon of the table or query into a sheet. That's all.
What else: [Tutorial] Using registered datasources in Calc

You can fill up a free grid with well structured data easily, but putting the unstructured values of a cell range into a structure can be challenging.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply