[Solved] Calc cell phone numbers
[Solved] Calc cell phone numbers
I thought I had set the cell format correctly for phone numbers, doing User Defined and (000) 000-0000. But after I type in the number and leave the cell, it shows only ###. When I return to the cell and press F2, the number I typed in shows up--straight numbers without the (), space, or dash. How can I have the formatted number appear in the cell?
Last edited by Hagar Delest on Sat Oct 18, 2014 6:04 pm, edited 1 time in total.
Reason: tagged solved
Reason: tagged solved
OpenOffice 4.0 on Windows 7 professional
Re: calc cell phone numbers
Cell phone numbers are no numbers at all. Enter them as text. Apply number format "@" of category "Text" to the cells in question before you enter those "numbers".
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: calc cell phone numbers
Sounds like your column isn't wide enough.
You can put the mouse on the row with the column letters, positioning it between the column you want to resize and the one to the right.
With the mouse in this position, press & hold the left mouse button, then drag the mouse to the right.
Alternatively, you can highlight the column, then right click in the column and select Optimum Column Width
You can put the mouse on the row with the column letters, positioning it between the column you want to resize and the one to the right.
With the mouse in this position, press & hold the left mouse button, then drag the mouse to the right.
Alternatively, you can highlight the column, then right click in the column and select Optimum Column Width
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: Calc cell phone numbers
Thanks for both of your replies, but neither helps me. Let me restate: I want a row that consists of phone numbers. I want to type in the numbers like this: 6666661234. Then I want the program to format it for me so that they appear on the spreadsheet like this: (666) 666-1234. That is, I want OpenOffice to insert the parentheses, the spaces, and the dash. Maybe that is not possible with OpenOffice.
OpenOffice 4.0 on Windows 7 professional
Re: Calc cell phone numbers
Highlight the cell(s)/row(s)/column(s) that you want formatted in that manner.
Right click and select Format Cells
Under the Numbers tab, select User-Defined and enter
Right click and select Format Cells
Under the Numbers tab, select User-Defined and enter
Code: Select all
(###) ###-####
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: Calc cell phone numbers
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: Calc cell phone numbers
Russell! YES! Thank you very much! It would have been nice if OpenOffice would have simply provided the phone format as an option in the drop-down list.
OpenOffice 4.0 on Windows 7 professional
-
- Volunteer
- Posts: 300
- Joined: Thu Apr 23, 2009 10:19 pm
- Location: Sydney Australia
Re: Calc cell phone numbers
That format is only valid in the US
AOO 4.1.5 on MS Windows 10 Professional & MacOS High Sierra 10.13.5
Please add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
Please add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
-
- Posts: 4
- Joined: Tue Oct 14, 2014 7:19 am
Re: Calc cell phone numbers
I have a huge data base where people entered their phone numbers and there were no parameters so some are 123-456-7890, some are (123) 456-7890, some are 123 456 7890 and some are all various combinations including 123/456-7890. Is there any way to change them all to (123) 456-7890?RusselB wrote:Highlight the cell(s)/row(s)/column(s) that you want formatted in that manner.
Right click and select Format Cells
Under the Numbers tab, select User-Defined and enterCode: Select all
(###) ###-####
OpenOffice 4 on MacOS 10.9.5
Re: Calc cell phone numbers
Not easily, as you have a lot of different scenarios presented, and I don't know if all of the possibilities are mentioned in your post.
In theory, you're best bet is to go along the length of the entry, and copy each digit found to another cell, with that cell already formatted as you want.
I can't think of a way to do this in Calc.
In theory, you're best bet is to go along the length of the entry, and copy each digit found to another cell, with that cell already formatted as you want.
I can't think of a way to do this in Calc.
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: Calc cell phone numbers
Select the cells (or column) you want to change
Edit > Find & Replace
Search for: ^\D*(\d{3})\D+(\d{3})\D+(\d{4})\D*$
Replace with: ($1) $2-$3
Match case: YES
Options/Regular expressions: ON
Options/Current selection only: ON
Click "Replace All"
This works with all your examples; it should cover most other cases as well.
Edit > Find & Replace
Search for: ^\D*(\d{3})\D+(\d{3})\D+(\d{4})\D*$
Replace with: ($1) $2-$3
Match case: YES
Options/Regular expressions: ON
Options/Current selection only: ON
Click "Replace All"
This works with all your examples; it should cover most other cases as well.
AOO4/LO5 • Linux • Fedora 23
-
- Posts: 4
- Joined: Tue Oct 14, 2014 7:19 am
Re: Calc cell phone numbers
Thank-you!!!acknak wrote:Select the cells (or column) you want to change
Edit > Find & Replace
Search for: ^\D*(\d{3})\D+(\d{3})\D+(\d{4})\D*$
Replace with: ($1) $2-$3
Match case: YES
Options/Regular expressions: ON
Options/Current selection only: ON
Click "Replace All"
This works with all your examples; it should cover most other cases as well.
OpenOffice 4 on MacOS 10.9.5
-
- Posts: 2
- Joined: Tue Apr 23, 2019 12:54 pm
Re: [Solved] Calc cell phone numbers
For find and replace, I recommend using a more improved regex string.
The below version will catch and find more phone formats, to include whole number (1234567890) and dotted format (123.456.7890).
Edit > Find & Replace
Search for: \(*(\d{3})\)*\s*\-*(\d{3})\s*\-*(\d{4})
Replace with: ($1) $2-$3
Here are some additional example replacement formats:
Replace with: $1-$2-$3
Replace with: $1.$2.$3
Replace with: ($1)$2-$3
The below version will catch and find more phone formats, to include whole number (1234567890) and dotted format (123.456.7890).
Edit > Find & Replace
Search for: \(*(\d{3})\)*\s*\-*(\d{3})\s*\-*(\d{4})
Replace with: ($1) $2-$3
Here are some additional example replacement formats:
Replace with: $1-$2-$3
Replace with: $1.$2.$3
Replace with: ($1)$2-$3
OpenOffice 3.1
Re: [Solved] Calc cell phone numbers
Thank you RusselB for cell input format for phone numbers. Much appreciated.
Open Office 4.1.2 on Windows 7 build 7601 SP1
-
- Posts: 2
- Joined: Sun Jun 03, 2018 7:05 am
Re: [Solved] Calc cell phone numbers
Here is something similar.
I wanted Phone Numbers entered as xxxxxxxxxx to to be formatted and appear as xxx-xxx-xxx (ie 1234567890 to appear as 123-456-7890).
I did the following:
Highlight column/row/cell
Format>cells>number>Format code = xxx-xxx-xx
I wanted Phone Numbers entered as xxxxxxxxxx to to be formatted and appear as xxx-xxx-xxx (ie 1234567890 to appear as 123-456-7890).
I did the following:
Highlight column/row/cell
Format>cells>number>Format code = xxx-xxx-xx
OpenOffice 3.3.0 on Windows 7
Re: [Solved] Calc cell phone numbers
Note:
If you handle the telephone numbers as formatted numeric values (instead of handling them as strings), you will not able to search the parts of the telephone numbers easily. You will make more jobs for yourself...
If you handle the telephone numbers as formatted numeric values (instead of handling them as strings), you will not able to search the parts of the telephone numbers easily. You will make more jobs for yourself...
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: [Solved] Calc cell phone numbers
I tend to live in fear that some spreadsheet calculating a drug dose for me will use my telephone number rather than my weight.
LibreOffice 7.3.7. 2; Ubuntu 22.04