Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Formula or Function to Set Many Existing Numbers in Same Format?

I would delete all the hyphens using the find replace function (put - in find
and nothing in replace). Then you can use a custom number format like this

0-00-000000-0

this would make every cell look the same. The value of each cell will be a
10 digit number, but they will look the way you want when viewing and
printing.

Save your work before trying this.

"V. Hatherley" wrote:

I have a column of numbers in the following format:

X-XX-XXXXXX-X

That is, they're all ten-digit numbers with hyphens in the positions shown.
Or rather, they all SHOULD be like that. Unfortunately, they've been keyed in
by many different people, and sometimes the hyphens have been left out, so
the number looks like this:

XXXXXXXXXX

Is there a way to automate the insertion of the hyphens so I don't have to
do many hundreds of them manually? It would need to be a method I could use
on the column as a whole (and that wouldn't screw up the correct numbers),
because the improperly-formatted numbers are scattered through, and if I have
to select only the incorrect ones to fix, I won't really be saving much time.

Help! Thanks as always!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
IF Function to test formula in a cell Fred Holmes Excel Worksheet Functions 5 November 18th 05 12:04 AM
Editing an existing formula Jen Excel Worksheet Functions 1 October 24th 05 07:55 PM


All times are GMT +1. The time now is 01:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"