Solved

Excel - Change cell format

Posted on 2013-11-22
5
438 Views
Last Modified: 2013-11-25
Hello all,

I have a column which includes a list of telephone numbers.
All values are marked as numbers and data appears like " 3.0212212+11"

What I want to do it to make number appear as  "302101234567"
So, I change the format of all cells to text.
Although all the cell change their format to text, I have to enter each cell to update the value: this means that I have to click each cell, press F2, and move on to next cell.

Is there a way to update all cells automatically?
ctrl+shit+alt+f9 is not working!
0
Comment
Question by:ampranti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 51

Accepted Solution

by:
Rgonzo1971 earned 350 total points
ID: 39668555
Hi,

Why not change the format to number  in Home / Number and then decrease the decimal with the button.

Or got to Other Formats / Number  
Choose decimal places 0

Regards
0
 
LVL 10

Author Comment

by:ampranti
ID: 39668573
This does work.

Any idea how to refresh all cells at once?
0
 
LVL 51

Expert Comment

by:Rgonzo1971
ID: 39668597
Hi,

Normally if you select all the cells that you want to update and follow the steps mentioned before just once

it should do it right

Or you can use find and replace  by format choose the format you want to find

Probably Scientific wit 7 decimal places

At replace use Number with 0 decimal places

then click Find all to ensure you've selected the right data then replace all

Regards
0
 
LVL 19

Expert Comment

by:regmigrant
ID: 39668668
Be careful using Number formats for Telephone Numbers as they tend to lose any leading zeros

Reg
0
 
LVL 23

Assisted Solution

by:Danny Child
Danny Child earned 150 total points
ID: 39675282
I enter a Custom number format like this for phone numbers
00000 000 000
which displays numbers as
01795 123 456

BUT, you enter the number by *skipping* the initial zero, ie the actual cell contents are just
1795123456
 - this means that there is always one less digit in the actual number than is represented by the zeroes in the Format.  This makes it easier for sorting later, vlookups, etc.

Of course, you can vary the gaps in the numbers as you wish.  Or, use dashes, whatever....

if you want to use dots, you have to enclose them in quotes in the Custom number format as otherwise it will interpret them as decimal places.
ie
00000"."000"."000
gives
01795.123.456
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

690 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