Re: How to Sort This Data
It is sorting correctly according to text rules.
If you need to sort differently you'd need a couple of functions to split the cells data into other cells then sort as you require.
Re: How to Sort This Data
thanks 4 the reply!
Am i have to do it in excel form? Or it's better to split it first in the database juz before i display it in excel?
Re: How to Sort This Data
Would it be possible on the Excel Sheet to split "PAP03-101-108-02-00-00-00-0000" into TWO columns ... "PAP03-" in one, and "101-108-02-00-00-00-0000" in the second? If you can do that, things get a lot easier. You can format the first column Right Justified, and the second column Left Justified to make the data easier to read. Of course, someone is going to come along with some other weird format and foul things up!
Re: How to Sort This Data
thanks Webtest!
It works great!! :)
Re: How to Sort This Data
I was thinking that you might also find some advantage in forcing the right hand column into a number and formatting it:
Selection.NumberFormat = "0000-00-0000"
... but Excel only supports 15 significant digits, and you have 18. Oh well, so much for that brainstorm.
Re: How to Sort This Data
I was thinking that you might also find some advantage in forcing the right hand column into a number and formatting it 'Custom' (manually or programmatically):
Selection.NumberFormat = "000-000-00-00-00-00-0000"
... but Excel only supports 15 significant digits, and you have 18. Oh well, so much for that brainstorm.