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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

cell format



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2004, 01:31 AM
Jean
external usenet poster
 
Posts: n/a
Default cell format

Could I get the correct way to format cells in Excel 97
SR2 to include text and numbers? For example, I need the
string L1234567891 to show as L-123-456-7891. Thanks for
your help
  #2  
Old June 15th, 2004, 01:54 AM
Norman Harker
external usenet poster
 
Posts: n/a
Default cell format

Hi Jean!

AFAIK you can't do it by format.

However, you could use a formula:

=LEFT(A1,1)&TEXT(RIGHT(A1,LEN(A1)-1),"-###-###-####")

I'm assuming a single prefix letter.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

"Jean" wrote in message
...
Could I get the correct way to format cells in Excel 97
SR2 to include text and numbers? For example, I need the
string L1234567891 to show as L-123-456-7891. Thanks for
your help



  #3  
Old June 15th, 2004, 11:42 PM
Jean
external usenet poster
 
Posts: n/a
Default cell format

Thanks for the help. It worked!

-----Original Message-----
Hi Jean!

AFAIK you can't do it by format.

However, you could use a formula:

=LEFT(A1,1)&TEXT(RIGHT(A1,LEN(A1)-1),"-###-###-####")

I'm assuming a single prefix letter.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

"Jean" wrote in

message
...
Could I get the correct way to format cells in Excel 97
SR2 to include text and numbers? For example, I need

the
string L1234567891 to show as L-123-456-7891. Thanks for
your help



.

 




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


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