Sort number small to big

sunwordelite

New Member
Joined
Sep 7, 2009
Messages
15
Hello sir need formula for using non vba .example image attach .I need to sort number smallest to largest in cell A2 to B2
4digit in single cell '5 digit and 6 digit in...
 

Attachments

  • Screenshot_2020-12-08-22-45-18-532_cn.wps.moffice_eng.jpg
    Screenshot_2020-12-08-22-45-18-532_cn.wps.moffice_eng.jpg
    146.8 KB · Views: 8

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
A formula like

Excel Formula:
=CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));1))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));2))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));3))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));4))

should do it for a 4-digit number. I dunno if there is any way to generalize it for an arbitrary amount of digits.

1607439462390.png



As you see it is the formula

Excel Formula:
CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1))

concatenated several times. You need to have as many digits inside the curly braces as there are digits in the number, and you need to increase the last argument in the function by one for every concatenation.

I found the formula here.
 
Upvote 0
@sunwordelite
What version of Excel are you using?
Please update your account details to show this, as it affects what functions you can use.
 
Upvote 0
Ok, how about
+Fluff v2.xlsm
BC
10987321123789
114096832101234689
12406046
Master
Cell Formulas
RangeFormula
C10:C12C10=TEXT(SUM(SMALL(--MID(B10,ROW(INDIRECT("1:"&LEN(B10))),1),ROW(INDIRECT("1:"&LEN(B10))))*10^(LEN(B10)-ROW(INDIRECT("1:"&LEN(B10))))),REPT("0",LEN(B10)))
Press CTRL+SHIFT+ENTER to enter array formulas.


Please don't forget to update your account details & then scroll down & click Save.
 
Upvote 0
A formula like

Excel Formula:
=CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));1))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));2))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));3))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));4))

should do it for a 4-digit number. I dunno if there is any way to generalize it for an arbitrary amount of digits.

View attachment 27516


As you see it is the formula

Excel Formula:
CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1))

concatenated several times. You need to have as many digits inside the curly braces as there are digits in the number, and you need to increase the last argument in the function by one for every concatenation.

I found the formula here.
Sir I copy this formula got error
 

Attachments

  • Screenshot_2020-12-08-23-42-03-047_cn.wps.moffice_eng.jpg
    Screenshot_2020-12-08-23-42-03-047_cn.wps.moffice_eng.jpg
    154.3 KB · Views: 4
Upvote 0
Wait si
Ok, how about
+Fluff v2.xlsm
BC
10987321123789
114096832101234689
12406046
Master
Cell Formulas
RangeFormula
C10:C12C10=TEXT(SUM(SMALL(--MID(B10,ROW(INDIRECT("1:"&LEN(B10))),1),ROW(INDIRECT("1:"&LEN(B10))))*10^(LEN(B10)-ROW(INDIRECT("1:"&LEN(B10))))),REPT("0",LEN(B10)))
Press CTRL+SHIFT+ENTER to enter array formulas.


Please don't forget to update your account details & then scroll down & click Save.
Sir I try first thanks for reply
 
Upvote 0
A formula like

Excel Formula:
=CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));1))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));2))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));3))&CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1));4))

should do it for a 4-digit number. I dunno if there is any way to generalize it for an arbitrary amount of digits.

View attachment 27516


As you see it is the formula

Excel Formula:
CHAR(SMALL(CODE(MID(B3;{1;2;3;4};1))

concatenated several times. You need to have as many digits inside the curly braces as there are digits in the number, and you need to increase the last argument in the function by one for every concatenation.

I found the formula here.
sir thank you very much formula work well for 3d
.thank you
 
Upvote 0
What language version of Excel are you using?
Also what do you normally use as separators in your formulae?
 
Upvote 0

Forum statistics

Threads
1,215,741
Messages
6,126,587
Members
449,319
Latest member
iaincmac

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