- Worldstart's Tech Tips And Computer Help - http://www.worldstart.com -

The Leading Zero

Posted By On May 5, 2006 @ 2:37 PM In MS Excel,MS Office Help | No Comments

The Leading Zero

Are you constantly frustrated with MS Excel, because it keeps removing that leading zero from your inventory number? (Or any leading zero on any piece of data?)

Yeah, me too.

The problem is that Excel automatically sees the data as a number and leading zeros have no value in numbers, so it gets rid of them.

It’s convenient when you’re actually dealing with numbers, but a pain when it’s a part number or an ID number.

A quick way to get Excel to leave your zeros alone is to change the cell format to text.

There are a few ways to make the change, so let’s cover a couple of them.

One way to handle the situation is to first highlight the cells to change. Then go to the Format menu, Cells choice. (Ctrl + 1 works too).

On the General tab, choose Text from the Categories list. Click OK.

Voila, the leading zeros are safe.

If you only have a few cells to change, you could just type an apostrophe before entering the data (for example, instead of typing 0123 in the cell, type ‘0123).

When you hit the Enter key, the change is made instantly, for that cell only, and once again, your zero is safe and sound.

~ April

The Leading Zero

Posted By On November 19, 2004 @ 2:59 PM In MS Excel | No Comments

The Leading Zero

Constantly frustrated with MS Excel because it keeps removing that leading zero from your inventory number? (Or any leading zero on any piece of data?)

Yeah, me too.

The problem is that Excel automatically sees the data as a number and leading zeros have no value in numbers, so it gets rid of them.

Convenient when you’re actually dealing with numbers, but a pain when it’s a part number or id number.

Here’s a quick way to get Excel to leave your zeros alone: change the cell format to text.

There are a few ways to make the change—let’s cover a couple of them.

One way to handle the situation is to first highlight the cells to change.

Then go to the Format menu, Cells choice. (Ctrl + 1 works too.)

On the General tab choose Text from the Categories list.

Click OK.

Voila—leading zeros are safe.

If you only have a few cells to change you could just type an apostrophe before entering the data (ie. instead of typing 0123 in the cell type 0123).

When you hit the Enter key the change is made instantly—for that cell only—and once again your zero is safe and sound.


Article printed from Worldstart's Tech Tips And Computer Help: http://www.worldstart.com

URL to article: http://www.worldstart.com/the-leading-zero/