A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Custom Number Format...



 
 
Thread Tools Display Modes
  #1  
Old January 25th, 2005, 08:59 PM
whitmore0112
external usenet poster
 
Posts: n/a
Default Custom Number Format...

I have a number/text that I want to apply a custom format to, but am not sure
if it is possible. The number/text starts as 12K52E1, and I would like to
apply a number format to always change it to 12K-52-E1. Is it possible?
  #2  
Old January 25th, 2005, 10:03 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default

Not possible to manipulate text like that using a number format,
if there were only numbers one could use something like

00"K"-00-"E"0

I suspect though that you get this text strings so one way assuming that the
numbers of characters always are 7 you can use a help formula


=LEFT(A1,3)&"-"&MID(A1,4,2)&"-"&RIGHT(A1,2)


then copy and paste special as values in place


Regards,

Peo Sjoblom

"whitmore0112" wrote:

I have a number/text that I want to apply a custom format to, but am not sure
if it is possible. The number/text starts as 12K52E1, and I would like to
apply a number format to always change it to 12K-52-E1. Is it possible?

  #3  
Old January 25th, 2005, 10:11 PM
Ken Wright
external usenet poster
 
Posts: n/a
Default

You can't apply a format like that to text, it has to be numeric. You can
always use formula to create that data in that format if that is acceptable
though, or even have a bit of code run through and change it all.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"whitmore0112" wrote in message
...
I have a number/text that I want to apply a custom format to, but am not

sure
if it is possible. The number/text starts as 12K52E1, and I would like to
apply a number format to always change it to 12K-52-E1. Is it possible?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional format number goss General Discussion 1 October 8th, 2004 03:53 PM
Automatically set number format Norm2000 General Discussion 2 September 5th, 2004 03:57 PM
Number Format Problem Lana Worksheet Functions 6 February 16th, 2004 08:57 PM
Number format problem in CSV files Mervyn Thomas Worksheet Functions 3 January 14th, 2004 05:31 PM


All times are GMT +1. The time now is 08:28 PM.


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