Formula Advice on Sorting Decimal Values from lowest value to Highest value

VBA learner ITG

Active Member
Joined
Apr 18, 2017
Messages
267
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi Peers,

I appreciate this may have been asked before but i am having issues sorting values with decimal points from low to high.

In Column A I have decimal values and in column B i have applied this formula to help with the sortation: =INT(A2)&"."&TEXT(RIGHT(A2,LEN(A2)-(FIND(".",A2))),"000")

The issue it is having is when the value is for example 1.10 it shows thew value as 1.001 when it should be 1.010

Any advice appreciated on how to resolve my issue?



CUSTOMER SEQUENCESORT SEQUENCE WITH FORMULA
1.11.001
1.21.002
1.31.003
1.41.004
1.51.005
1.61.006
1.71.007
1.81.008
1.91.009
1.11.001
1.111.011
1.121.012
1.131.013
1.141.014
1.151.015
1.161.016
1.171.017
1.181.018
1.191.019
1.21.002
 
If you want them to be different then you have to format the column as text.
Or use a mathematically correct notation as others have suggested, where the value after 1 is 1.01, etc.
 
Upvote 0
Solution

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Thank you everyone for taking the time to help me i have formatted the column as Text which works.
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,816
Members
449,095
Latest member
m_smith_solihull

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