Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Format from 870914143 to 8-709-14143

Hi,
I have a column that I would like to format like the sample below. I want to
keep the dashes between the numbers.
from 870914143 to 8-709-14143
Thank you so much
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Format from 870914143 to 8-709-14143

Format cell as:

Custom==0-000-00000

HTH

"Mary" wrote:

Hi,
I have a column that I would like to format like the sample below. I want to
keep the dashes between the numbers.
from 870914143 to 8-709-14143
Thank you so much

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Format from 870914143 to 8-709-14143

THANK YOU SO MUCH ALL

"Toppers" wrote:

Format cell as:

Custom==0-000-00000

HTH

"Mary" wrote:

Hi,
I have a column that I would like to format like the sample below. I want to
keep the dashes between the numbers.
from 870914143 to 8-709-14143
Thank you so much

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default Format from 870914143 to 8-709-14143

Hi,

try like below:

A B
1 870914143 =left(A1,1)&"-"&MID(A1,2,3)&"-"&RIGHT(A1,5)
2
3
4
5

then copy the formula in the cell B1 down to where ever you need it is
assumed that all the formats are the same for example if the data in the cell
A2 would be 546537365 the result come up like 5-465-37365 so if you don't
need the column B you can copy column B and pastespecial-value in the column
A and then delete column B.

Thanks,
--
Farhad Hodjat


"Mary" wrote:

Hi,
I have a column that I would like to format like the sample below. I want to
keep the dashes between the numbers.
from 870914143 to 8-709-14143
Thank you so much

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
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
how do i format a cell based on format of a range of cells? Chris Hardick Excel Discussion (Misc queries) 2 April 3rd 06 08:54 AM
Replace million-billion number format to lakhs-crores format Sumit Excel Discussion (Misc queries) 1 December 9th 05 04:58 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM
When I select "format cells", the format dialog box does not disp. Andy S. Excel Worksheet Functions 2 November 23rd 04 03:49 AM


All times are GMT +1. The time now is 04:54 PM.

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

About Us

"It's about Microsoft Excel"