i got data something like this...
m4-1
m4-10
m4-100
m4-2
m4-3
m4-30
i try to arrange it in ascending order...
m4-1
m4-2
m4-3
m4-10
m4-30
m4-100
any vba can help? it cant be solve using sort
i got data something like this...
m4-1
m4-10
m4-100
m4-2
m4-3
m4-30
i try to arrange it in ascending order...
m4-1
m4-2
m4-3
m4-10
m4-30
m4-100
any vba can help? it cant be solve using sort
Isaac Koh
you could setup a hidden column and sort on that column
at the moment its sorting by text
try in a new cell
=value(mid(Cell, 4,20))
and then sort on the new column
Wayne
if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here
If you have a solution to your thread - Please mark your thread solved do the following: >
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
so long as the first characters
M?- is only 3 characters , then it will work
i'm removing the first 3 characters - so it will work for M3- M4- anything with 3 characters
and if you always have a - before the number , then we can change so it can work with any text string length -
give it a try and see what happens
nope.. m3-10, m4-10.. this kind of condition will be duplicated right??
OK , I see what you mean
so then i guess a VBA solution would be better
although 2 helper columns
one with
=left(cell,2)
and the second
=value(mid(Cell, 4,20))
and custom sort 1st column and then add 2nd column as next level sort
then you get
M3-10
.
.
M4-10
.
.
M5-10
etc
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks