Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello:
In various cells, I have such data as "1000001p" How can I have Excel automatically change it to "1000-001P" or even "1000-001-P"? You see, I need dashes inserted and I need the last alpha character to be capitalized. Thanks! childofthe1980s |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have a look in HELP index for MID
-- Don Guillett SalesAid Software "childofthe1980s" wrote in message ... Hello: In various cells, I have such data as "1000001p" How can I have Excel automatically change it to "1000-001P" or even "1000-001-P"? You see, I need dashes inserted and I need the last alpha character to be capitalized. Thanks! childofthe1980s |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Assuming data in A1, put the following in B1: =TEXT(LEFT(A1,LEN(A1)-1),"0000-000-") & UPPER(RIGHT(A1,1)) Change the "0000-000-" to suit your needs. HTH "childofthe1980s" wrote: Hello: In various cells, I have such data as "1000001p" How can I have Excel automatically change it to "1000-001P" or even "1000-001-P"? You see, I need dashes inserted and I need the last alpha character to be capitalized. Thanks! childofthe1980s |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is a formula. It assumes that 10000001p is in Cell A1
=LEFT(A1,5)&"-"&MID(A1,6,3)&"-"&UPPER(RIGHT(A1,1)) -- HTH... Jim Thomlinson "childofthe1980s" wrote: Hello: In various cells, I have such data as "1000001p" How can I have Excel automatically change it to "1000-001P" or even "1000-001-P"? You see, I need dashes inserted and I need the last alpha character to be capitalized. Thanks! childofthe1980s |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is there a way to insert dashes in a column of numbers | New Users to Excel | |||
Need to change numbers with dashes to numbers with no dashes | Excel Discussion (Misc queries) | |||
Dashes I want Dashes | Excel Discussion (Misc queries) | |||
What are dashes for | Excel Discussion (Misc queries) | |||
How to insert a repeating dash in phone numbers without dashes in. | New Users to Excel |