« Cell formats, and using NOW() and other functions in OpenOffice Calc spreadsheets that you use in databases and mail merges | Main | Doing an email mail merge without most of the overhead of the OpenOffice Mail Merge wizard »

October 02, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341cdb1753ef00e554eeb9fc8833

Listed below are links to weblogs that reference Sorting mixed 5- and 9-digit zip codes in OpenOffice.org Calc or Microsoft Excel:

Comments

hawkse

A variation on your third option is to use the handy "text to columns" option available under the "Data" menu.

Just select the column, choose "Data » Text to columns", select "-" as the field separator and press OK.

Solveig

Hi Hawkse,

Beautiful! I've been asked if this feature exists and I guess I didn't connect the menu item name with the functionality. (In Excel apparently it's under right-click.) Thanks!

Solveig

Kevin Fries

Your answer to the how to search and replace in option #2 is actually quite easy.

In the Search Box:
^([:digit:])

In the Replace Box:
'$0

This will replace all lines starting with a digit only with a quote and the digit found in the search

Keep up the good work
Kevin Fries

Pablo Caceres

Hi Solveig:

I found a big trouble using Calc. Look, i was managing a big database, it is heavy, more than 13MB. Well, i created other databases in the same file adding new sheets. After that, i tried to make some changes and for to do it easily, i went to Window > Divide, then i saved the file and all sheets disappeared!!!. Any suggestions???

Solveig

Hi Pablo,

It's a database based on a spreadsheet, and now when you open the spreadsheet all the sheets disappeared? Did the disappearance take place when you view the datase or the spreadsheet itself?

David Cowell

I use a relatively simple solution to the multi-length ZIP code problem.

Before I start entering data, I select the column (or the appropriate cells), right click, select Format > Numbers, slide down to Text, OK. It doesn't hurt to set Alignment at Left, either.

The more important benefits of this approach are that:

you don't have to give an artificial "-0000" that may have to be searched for when making a pre-sorted mailing

you reduce unusual keyboarding of data, thus reducing possible errors in data

Incidentally, this problem doesn't crop up in Canadian and British postal codes.

Thanks for a truly informative blog!

Solveig

Kevin, thanks for the regex for the s/r! Perfect.


"Your answer to the how to search and replace in option #2 is actually quite easy.

In the Search Box:
^([:digit:])

In the Replace Box:
'$0

This will replace all lines starting with a digit only with a quote and the digit found in the search."

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

GetOpenOffice Consulting

Get Book Resources

Search This Blog