Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a long list of text strings and would like to remove leading zeros,
returning each string with zeros removed. Is there an easy way to do this using excel text functions? ie. 00234 234 02569 2569 etc |
#2
![]() |
|||
|
|||
![]()
If your string is in A1, then =trim(value(a1)) should get it. Value converts
it to a number and therefore drops leading 0's. Trim is my lazy way of converting back to a string (the text function works also but requires another argument). "snooze" wrote: I have a long list of text strings and would like to remove leading zeros, returning each string with zeros removed. Is there an easy way to do this using excel text functions? ie. 00234 234 02569 2569 etc |
#3
![]() |
|||
|
|||
![]()
=TEXT(VALUE(C9),"#")
Or, if they don't have to remain strings, just =VALUE(A1) -- Kind regards, Niek Otten Microsoft MVP - Excel "snooze" wrote in message ... I have a long list of text strings and would like to remove leading zeros, returning each string with zeros removed. Is there an easy way to do this using excel text functions? ie. 00234 234 02569 2569 etc |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Leading zeros | Excel Discussion (Misc queries) | |||
save text field w/ leading zeros in .csv format & not lose zeros? | Excel Discussion (Misc queries) | |||
remove spaces in text in excel | Excel Discussion (Misc queries) | |||
Remove single text characters | Excel Discussion (Misc queries) | |||
Displaying leading zeros in an Excel spreadsheet | Excel Discussion (Misc queries) |