ABS and LARGE Problem

tljenkin

Board Regular
Joined
Jun 14, 2007
Messages
147
Hi All,

Please help, I have a list that contains positive and negative numbers. Lets just say 10 cells containing positive and negative cells. I want to use large in an array to reorder the 10 cells, obviously highest to lowest but I want the re-ordered results to show negative signs for those items that were negative.

I used large and ABS and that worked in terms of reordering but all items are now positve. I dont know how to get excel to apply the negative sign to the original negative items.

Please help

Thanks
 
Sorry I do not know how to edit my post, so I shall say that my formula above has an error, the range should be $C$1:$C$11 instead of $C$2:$C$12.

Best regards
Filipe Caetano
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try:


Book1
ABCDEF
11Subtotal157.97-100,25Subtotals by Magnitude
22Value110.25-82,4157.97
33Value242.5360,02-54.38
44Value35.1957,97-48.26
55Subtotal2-54.38-54,38
66Value145.87-48,26
77Value2-100.2545,87
88Subtotal3-48.2642,53
99Value1-25.87-25,87
1010Value2-82.4110,25
1111Value360.025,19
Sheet2
Cell Formulas
RangeFormula
F2=IFERROR(INDEX(C:C,MOD(AGGREGATE(14,6,(ABS(C$1:C$100)*100000+ROW(B$1:B$100))/(LEFT($B$1:$B$100,8)="Subtotal"),ROWS(F$2:F2)),1000)),"")


This should work if you have only 2 decimal places, and have at most 999 rows of data.
 
Upvote 0
Amazing job Eric!

Just what I needed.

Thank you very much once again for your precious help.

Best regards
Filipe Caetano
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

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