ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   sort below data (https://www.excelbanter.com/excel-discussion-misc-queries/193392-sort-below-data.html)

Naveen

sort below data
 
1
2
3
4
5
6
7
8
9
10
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10



sort like this
1
-1
2
-2
3
-3
4
-4
5
-5


Pete_UK

sort below data
 
Here's one way - put this formula in B1:

=IF(A1<0,ABS(A1)+0.1,A1)

then copy down for as much data as you have in column A. Then
highlight both columns, click on Data | Sort and choose column B as
the sort column. After the sort you can delete column B.

Hope this helps.

Pete

On Jul 2, 10:45*am, NAVEEN wrote:
1
2
3
4
5
6
7
8
9
10
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10

sort like this
1
-1
2
-2
3
-3
4
-4
5
-5




All times are GMT +1. The time now is 06:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com