Share via

How do I remove preceding zeros from a number like 00958?

Anonymous
2012-07-03T15:58:54+00:00

Trying to do a lookup code and the comparable cell in the named table is a number, format General  (looks like 958).  The column of numbers to compare with are also formatted as General, but are preceded by a zero that I would like to remove (i.e. 00958).  Thank you.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2012-07-03T16:42:47+00:00

    format the cell as number

    put a 1 in another cell.  Copy that cell

    then select the cell with 00948 and do a paste special and in the paste special dialog, choose multiply  (the paste special option is found in the paste dropdown on the Home tab.

    You can do this to multiple cells all at once if they have leading zeros.

    --

    Regards,

    Tom Ogilvy

    70+ people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Anonymous
    2012-07-03T16:34:55+00:00

    Trying to do a lookup code and the comparable cell in the named table is a number, format General  (looks like 958).  The column of numbers to compare with are also formatted as General, but are preceded by a zero that I would like to remove (i.e. 00958).  Thank you.

    Hi,

    Cells might in Text fomat, click on it then press F2, delete the ' before the zeros. if you have a long list, put this beside it (B1), assumming A is the column of your numbers...

    =VALUE(A1)

    Copy B1 and paste downward...

    Addtional: Copy the range formula with the results, then paste-special/values into the original location.

    Hope it helps,

    Jaeson

    30+ people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-07-03T19:40:34+00:00

    Select the entire column, call up the Text To Columns dialog box (Data/Data Tools/Text To Columns) and click the Finish button as soon as the dialog box appears.

    20+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2012-07-03T17:12:13+00:00

    This worked perfectly too, thank you!

    0 comments No comments
  3. Anonymous
    2012-07-03T17:11:54+00:00

    Tried the =value formula - worked perfect.  Thank you!

    0 comments No comments