Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Delete a period in a cell
I have below data in the excel from an import.
001-8420-849900 I want to change into 0018420.849900. I know how to replace "-" with "." but not sure how to delete one of "." Thanks! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Delete a period in a cell
if it's always the same number of digits between the dashes, you can use the
=LEFT and =RIGHT functions to split it up and =CONCATENATE it back together without the dashes then use the find/replace "Dar Dar" wrote: I have below data in the excel from an import. 001-8420-849900 I want to change into 0018420.849900. I know how to replace "-" with "." but not sure how to delete one of "." Thanks! |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Delete a period in a cell
You can use a help column with formulas, assume the import starts in A2, in
B2 put (if B2 is taken select column B and do insertcolumn) =SUBSTITUTE(SUBSTITUTE(A2,"-",".",2),"-","") copy down as long as needed and the copy and paste special as values over the old values finally delete the help column of course this assumes that there are 2 dashes/hyphens to replace and that you want to remove the first and replace the second with a period -- Regards, Peo Sjoblom "Dar Dar" <Dar wrote in message ... I have below data in the excel from an import. 001-8420-849900 I want to change into 0018420.849900. I know how to replace "-" with "." but not sure how to delete one of "." Thanks! |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Delete a period in a cell
Hi Peo,
Thanks so much. It works like magic. :) By any chance, do you know if there is a way to set up in Excel to automatically change to that format all time? Thanks again. Have a great day. Dar Dar "Peo Sjoblom" wrote: You can use a help column with formulas, assume the import starts in A2, in B2 put (if B2 is taken select column B and do insertcolumn) =SUBSTITUTE(SUBSTITUTE(A2,"-",".",2),"-","") copy down as long as needed and the copy and paste special as values over the old values finally delete the help column of course this assumes that there are 2 dashes/hyphens to replace and that you want to remove the first and replace the second with a period -- Regards, Peo Sjoblom "Dar Dar" <Dar wrote in message ... I have below data in the excel from an import. 001-8420-849900 I want to change into 0018420.849900. I know how to replace "-" with "." but not sure how to delete one of "." Thanks! |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Delete a period in a cell
Another way...
=REPLACE(REPLACE(A2,FIND("-",A2,FIND("-",A2)+1),1,"."),FIND("-",A2),1,"") "Dar Dar" wrote: I have below data in the excel from an import. 001-8420-849900 I want to change into 0018420.849900. I know how to replace "-" with "." but not sure how to delete one of "." Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to delete cell values withour deleting cell formulae | Excel Discussion (Misc queries) | |||
How to delete cell values without affecting cell formulae | Excel Discussion (Misc queries) | |||
Delete cell on 1 page: automatically delete on another page? | Excel Worksheet Functions | |||
Delete cell contents with input to adjacent cell | Excel Discussion (Misc queries) | |||
Period to Period percentage change? | Excel Discussion (Misc queries) |