Solved

How to find and replace blank fields in open office calc

Posted on 2008-06-11
1
784 Views
Last Modified: 2013-12-27
I have 6 columns and there are a few row entries that are blank in columns 2 and 3.   How can I find and replace those banks with '0's?  I'm trying to use phpPGadmin to import a csv file into a table and it wont take blanks in double precision fields.

Thanks,
Sean

SQL error:
 
ERROR:  invalid input syntax for type double precision: ""
 
In statement:
INSERT INTO "temp" ("zip", "lat", "lon", "city", "abr", "county", "type") VALUES ('29588', '', '', 'MYRTLE BEACH', 'SC', 'HORRY', 'STANDARD')

Open in new window

0
Comment
Question by:sean-keys
1 Comment
 
LVL 24

Accepted Solution

by:
fridom earned 500 total points
ID: 21784297
Move away the two columns then on at the other place write someting like
=if(CellMoved <> ""; CellMoved; 0,0)

Well you could of course change the insert statement if you like...

Regards
Friedrich

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Outlook Free & Paid Tools
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question