Sort column with '000 format

ajcrig99

New Member
Joined
Nov 7, 2018
Messages
4
Hopefully this one is super easy, I have a column of numbers starting at 0 and going to 200 but must be 3 digits long. I have added '00 and '0 to all numbers below 100 so they display as 001, 002 etc but now they do not sort properly. This is how they show up

113
200
201
202
000
009
010
011
028
033

<tbody>
</tbody>

This is how I want them to show:

000
009
010
011
028
033
113
200
201
202

<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I am guessing you have a mix of numbers and numbers entered as text (you can tell if you take off the alignment and some are right-justified (numbers), and some are left-justified (text).

In order to get them to sort properly, they must ALL be of the same data type (numeric or text).

So, if you are typing a single quote before your leading zeroes, then you must enter EVERY number like that (or change the column to Text format, and re-enter your values).
Or, enter all the values as numbers, and use a Custom format of "000" to display them as three digit numbers.

It is an "either or" situation. You cannot mix them up, and get them to behave the way you want.
 
Upvote 0
You are weclome.

You can also avoid having to do that if you format the whole column as Text before typing in your values.
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top