Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Formatting cells for text and numbers

I'm trying to format cells so that I can enter 'F0708' and have it display as
'F-07-08'.

Is there a way to do this? I'm totally stumped. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Formatting cells for text and numbers

if your data is always a alpha and follow by 4 numberic characters
as in your example F0708

try this formula

=LEFT(A2,1)&"-"&MID(A2,2,2)&"-"&RIGHT(A2,2)

this will give you F-07-08

HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis




"CMEknit" wrote:

I'm trying to format cells so that I can enter 'F0708' and have it display as
'F-07-08'.

Is there a way to do this? I'm totally stumped. Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Formatting cells for text and numbers

Hi,

Before you get carried away with this idea consider

Jan 1 2009, Jun 1 2009 and Jul 1, 2009

In you nomenclature these would all get
J0109

That's probably a bad idea. August and April start with A, March and May
with M.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"CMEknit" wrote:

I'm trying to format cells so that I can enter 'F0708' and have it display as
'F-07-08'.

Is there a way to do this? I'm totally stumped. Thanks.

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
Formatting cells for text and numbers Preston Excel Worksheet Functions 2 February 12th 09 05:48 PM
Formula Text String: Formatting Text and Numbers? dj479794 Excel Discussion (Misc queries) 5 June 30th 07 12:19 AM
formatting cells with numbers as text TimR Excel Discussion (Misc queries) 2 March 14th 07 11:12 PM
Formatting from text to numbers Mark Excel Worksheet Functions 2 September 9th 06 05:26 PM
numbers to text with formatting Mike Excel Discussion (Misc queries) 1 March 29th 06 03:50 PM


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