Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Please help me formating cells. Example: DM17043X10 - this is the text having in a cell I need to format the above text as: DM-1704- -3X10 spaces given between 4- & -3 Please help me on this. Thank You, PSL. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi PSL,
You can't do this through formatting but, provided your data always have the same format, you can use a formula like the one below to reformat the strings: =LEFT(A1,2)&"-"&MID(A1,3,4)&"- -"&RIGHT(A1,4) -- macropod [MVP - Microsoft Word] "PSL" wrote in message ... Hi, Please help me formating cells. Example: DM17043X10 - this is the text having in a cell I need to format the above text as: DM-1704- -3X10 spaces given between 4- & -3 Please help me on this. Thank You, PSL. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can't do this with a number format.
But you could use a helper cell and a formula: =left(a1,2) & "-" & mid(a1,3,4) & "- -" & right(a1,4) This may work ok if all the data is really 10 characters wide. PSL wrote: Hi, Please help me formating cells. Example: DM17043X10 - this is the text having in a cell I need to format the above text as: DM-1704- -3X10 spaces given between 4- & -3 Please help me on this. Thank You, PSL. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing cell format - for example text to numeric | Excel Discussion (Misc queries) | |||
Change number (in text format) to numeric format | Excel Discussion (Misc queries) | |||
Formulas dealing with text data | Excel Worksheet Functions | |||
Combining data (numeric format) in multiple cells into one cell (t | Excel Discussion (Misc queries) | |||
Text to Numeric format | Excel Discussion (Misc queries) |