i am using openoffice calc to print out address labels for envelopes.
ideally i would like to put \n into the replace box or to put it another way i need to use the replace box to insert a new line within a cell
i am looking to replace commas with new line. at the moment i am manually replacing commas with <ctrl><enter>
PLEASE HELP
Query about find and replace
Query about find and replace
windows 10 64bit
openoffice 4.1.0
openoffice 4.1.0
Re: query about find and replace
=SUBSTITUTE(A1;",";CHAR(10))
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: query about find and replace
Please note that Villeroy's suggestion doesn't change the information. but creates a second copy of the information with the change, so you end up having both.
If you want to use the Find & Replace dialog to change your original information, I believe entering , in the Find box and /n in the Replace box (ensure that the Regular Expressions box under More Options is checked) will do what you're looking for,
My knowledge of RegEx is limited, thus i don't guarantee that the information for the Replace box is exactly what you are wanting.
If you want to use the Find & Replace dialog to change your original information, I believe entering , in the Find box and /n in the Replace box (ensure that the Regular Expressions box under More Options is checked) will do what you're looking for,
My knowledge of RegEx is limited, thus i don't guarantee that the information for the Replace box is exactly what you are wanting.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
Re: query about find and replace
this method is very crude and actually creates more problems for me than it solves. i print the cells to a label printer, the cells are the same shape as the labels. the SUBSTITUTE formula changes the layout of the cellVilleroy wrote:=SUBSTITUTE(A1;",";CHAR(10))
also i need to substitute more than one character for the new line but " , " does not work i only want to remove the blank spaces before and after commas not all the blank spacesso i dont think substitute is sophisticated for me.
i should nention i am a total noob on formulas for openoffice i am very knowledgeable on ms excell formulas so i use that. but open office is easier for this task
---------------------------------------
/n does not work in the replace box only the search box and also you mean \n and not /nRusselB wrote:Please note that Villeroy's suggestion doesn't change the information. but creates a second copy of the information with the change, so you end up having both.
If you want to use the Find & Replace dialog to change your original information, I believe entering , in the Find box and /n in the Replace box (ensure that the Regular Expressions box under More Options is checked) will do what you're looking for,
My knowledge of RegEx is limited, thus i don't guarantee that the information for the Replace box is exactly what you are wanting.
and yes i need to enter \n into the replace box or a shorthand for <ctrl><enter> that would be ideal and such a simple thing to do why doesnt openoffice have this functionality!
windows 10 64bit
openoffice 4.1.0
openoffice 4.1.0
Re: query about find and replace
If the comma-separated list is fairly consistent, this may work:
Instructions may cause major changes to your file, so save a backup first.
Instructions may cause major changes to your file, so save a backup first.
- Select your table and use Data - Text to columns.
- Tick the "Commas" box.
You get a preview of the resulting columns in the pane at the bottom of the dialog. - If the preview looks right, click the OK button.