Sorting with ABS

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
567
Office Version
  1. 365
Platform
  1. Windows
I am adding 4 columns, 3 of which have ABS totals. When I do =Sum( of the 4 columns I get correct sum but when I try to sort the 15 numbers from lowest to highest it does not put them in the correct order. The first column below is the total and this is after I sorted them. The first row of numbers I am adding are 2+1+2.12+.036 = 5.156

05.1621 02.12
.036
03.182001.18.002
02.120200.11.014
06.193201.18.008
08.834301.82.008
15.052706.04.009
11.486500.47.005
12.327401.30.019
15.367701.35.010
09.783600.77.014
20.139803.11.015
14.037700.02.007
17.866704.84.022
28.39121501.35.039

<colgroup><col style="mso-width-source:userset;mso-width-alt:1901;width:39pt" width="52"> <col style="mso-width-source:userset;mso-width-alt:987;width:20pt" width="27"> <col style="mso-width-source:userset;mso-width-alt:804;width:17pt" width="22"> <col style="mso-width-source:userset;mso-width-alt:1462;width:30pt" width="40"> <col style="mso-width-source:userset;mso-width-alt:1206;width:25pt" width="33"> </colgroup><tbody>
</tbody>
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Would you repost your example showing the negative values or indicate which column has the ABS function?
Are you wanting to sort by the first column (the sum across) or the column with the ABS function in it?

Also, you said 15 numbers, but in your post there are only 14 rows.
 
Last edited:
Upvote 0
I must have missed that last row. Regardless I should have just posted 1 line. Here is the 1st line from above without the ABS. The first column is the sum of the following 4 columns. Column 2,3 and 4 have ABS. Column 3 (02.12) is not ABS.

01.08-2102.12-.036

<colgroup><col width="52"><col width="27"><col width="22"><col width="40"><col width="37"></colgroup><tbody>
</tbody>
 
Upvote 0
If you are sorting based on the sum column, then the rows would be arranged based on the sum. So, absolute values in other columns have no bearing on this.
 
Upvote 0
I may not have mentioned this but the sum column is also ABS. Formula is: =SUM(ABS(AG6+AH6+AI6+AJ6))
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,765
Members
449,049
Latest member
greyangel23

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