#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default custom number format

I want to change an eight digit number into the following format:
11111111
x.xxx-xxx.x
should look like 1.111-111.1

I need to create this as a custom number format because I use it all the time.
--
PMC
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default custom number format



"pm ctech" wrote:

I want to change an eight digit number into the following format:
11111111
x.xxx-xxx.x
should look like 1.111-111.1

I need to create this as a custom number format because I use it all the time.
--
PMC


use the following formula

Assuming your 8 digit number is in cell A1,

=LEFT(A1,1)&"."&MID(A1,2,3)&"-"&MID(A1,5,3)&"."&RIGHT(A1,1)



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
Moving custom number format to NUMBER Doug Boufford Setting up and Configuration of Excel 3 July 23rd 07 11:58 PM
Custom Number Format jollynicechap Excel Discussion (Misc queries) 7 December 11th 06 03:00 PM
how do I add phone number format as a permanent custom format? frustratedagain Excel Discussion (Misc queries) 3 February 4th 06 03:52 AM
Format a cell with a custom number format Armor Excel Worksheet Functions 4 January 29th 06 11:25 PM
Custom number format always defaults last number to 0. scubadave Excel Discussion (Misc queries) 2 June 15th 05 10:20 PM


All times are GMT +1. The time now is 12:02 AM.

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"