entering measurements and sorting

SDKBRK

Board Regular
Joined
Feb 1, 2003
Messages
162
I have a column that has measurements and I need to sort them.

Item Name is in the 1st column
Size is in the 2nd column

I did a sort Advance Filter/Sort and it sorted the NAME in the 1st column but when it came to sorting the 2nd column it put 1 1/2" x 2 before 1" x 2".

1" x 2"
1 1/2" x 2"
2 " x 2"
1" 1/2" x 3"

How Do I Make It Sort and give me the 1" before the 1 1/2".
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
What type of field is the Size?

If it is a text field then Access will sort it alphabetically rather than numerically.

The only way I can think of to do this sort using your current setup would be to somehow extract the numbers from the Size field.
 
Upvote 0
I can not use 1.5 because I have 3/16, 1/4, 1/8, 3/8 and so on. If I change the field from text to number it tells me I will lose some data.
 
Upvote 0
Here's a suggestion: Do a one-time table that has fractional to decimal equivalents in it. From there, when you are doing your sorts, bring that conversion table into the query, DISPLAY the fractional size, but SORT by the decimel size.
HTH (y)
P
 
Upvote 0

Forum statistics

Threads
1,221,854
Messages
6,162,448
Members
451,765
Latest member
craigvan888

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