Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to format a decimal number that has leading zeros and four
decimal places and want to remove the decimal but keep the structure of the number ie change 00000100.9730 to 000001009730. I have tried various methods including changing the number to text the doing a find and replace the decimal and replacing it with "" to no avail. I end up loosing the zeros. Any suggestions would be appreciated |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mark:
Perhaps: =SUBSTITUTE(TEXT(100.973,"00000000.0000"),".","") will work for you. Regards, Vasant. "Mark Williams" wrote in message om... I am trying to format a decimal number that has leading zeros and four decimal places and want to remove the decimal but keep the structure of the number ie change 00000100.9730 to 000001009730. I have tried various methods including changing the number to text the doing a find and replace the decimal and replacing it with "" to no avail. I end up loosing the zeros. Any suggestions would be appreciated |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you put a single quote ' in front of the value and then search for
the decimal and replace it with nothing it should work: Cells.Replace What:=".", Replacement:="", LookAt:=xlPart, SearchOrder:= _ xlByColumns, MatchCase:=False hth Mike ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Peremanently removing decimal places | Excel Worksheet Functions | |||
Help with removing certain strings from cells | Excel Discussion (Misc queries) | |||
Removing digits after decimal in "text" numbers | Excel Worksheet Functions | |||
Removing blank cells... | Excel Discussion (Misc queries) | |||
Removing/adding decimal points | Excel Discussion (Misc queries) |