Solved

How to find and replace blank fields in open office calc

Posted on 2008-06-11
1
776 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now