Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10
Default Custom Formatting

Hi, I need to format text and numbers, but I keep messing up.
For example, I want to format
A12345678901 so that it will appear as
A123-4567-8901

Please help?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Custom Formatting

Start with 12345678901 in a cell. Then:

Format Cells Custom "A"000-0000-0000

Don't manually enter the "A", let the formatting do it.
--
Gary''s Student - gsnu200779


"cliff" wrote:

Hi, I need to format text and numbers, but I keep messing up.
For example, I want to format
A12345678901 so that it will appear as
A123-4567-8901

Please help?

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11
Default Custom Formatting

Assuming the original numbers are always 1 alpha and 10 numeric digits, this
should work...

=LEFT(D6,1) & TEXT(VALUE(RIGHT(D6,9)),"000-0000-0000")

Francis J Hayes (The Excel Addict)

www.TheExcelAddict.com
Helping Average Spreadsheet Users
Become Local Excel Experts




"cliff" wrote:

Hi, I need to format text and numbers, but I keep messing up.
For example, I want to format
A12345678901 so that it will appear as
A123-4567-8901

Please help?

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 formatting BorisS Excel Discussion (Misc queries) 0 March 17th 08 06:16 PM
Custom formatting WillieWoman Excel Discussion (Misc queries) 3 March 11th 07 08:37 AM
expanding custom formatting without removing existing cell formatting? Keith Excel Worksheet Functions 3 December 27th 06 01:54 PM
Custom Formatting Nikki Excel Worksheet Functions 2 February 13th 06 09:10 PM
custom formatting ???/???? DVR019 Excel Discussion (Misc queries) 2 June 4th 05 11:07 AM


All times are GMT +1. The time now is 02:07 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"