Absolute with Large function

corinnejacobson

New Member
Joined
Feb 6, 2014
Messages
11
I have a column of numbers both positive and negative. I want to get a table of the 4 largest absolute values WITHOUT having to create another column of those numbers as absolute values.
I tried LARGE(abs(A1:A34),1) - then 2,3,4 - but it came back #NUM. Any thoughts?
 

Some videos you may like

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,782
Office Version
  1. 2010
Platform
  1. Windows
The formula needs to be confirmed by pressing and holding the Ctrl and Shift keys, then pressing Enter.
 

corinnejacobson

New Member
Joined
Feb 6, 2014
Messages
11
The formula needs to be confirmed by pressing and holding the Ctrl and Shift keys, then pressing Enter.

That works - except it pulls in the negative values as positives, I still want them to be negative when they populate the table.
 

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,782
Office Version
  1. 2010
Platform
  1. Windows
One way:

C​
D​
E​
F​
G​
H​
1​
1​
98​
-99​
99​
C1: Input
2​
2​
92​
-98​
98​
D1: =LARGE($A$1:$A$34, C1)
3​
3​
89​
-95​
95​
E1: =SMALL($A$1:$A$34, C1)
4​
4​
88​
-86​
88​
F1: =IF(D1>-E1, D1, -E1)

All formulas are confirmed normally.
 
Last edited:

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,782
Office Version
  1. 2010
Platform
  1. Windows
That's not right ...
 

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,782
Office Version
  1. 2010
Platform
  1. Windows
I think the easiest way is to just sort by absolute value:

A​
B​
C​
1​
value​
abs​
2​
-975​
975​
B2: =ABS(A2)
3​
-970​
970​
4​
962​
962​
5​
-932​
932​
6​
-897​
897​
7​
880​
880​
8​
-877​
877​
9​
-868​
868​
10​
868​
868​
11​
-853​
853​
12​
-819​
819​
13​
786​
786​
14​
-773​
773​
15​
-735​
735​
16​
-662​
662​
17​
-636​
636​
18​
-593​
593​
19​
-554​
554​
20​
-553​
553​
21​
545​
545​
22​
-518​
518​
23​
504​
504​
24​
488​
488​
25​
-424​
424​
26​
300​
300​
27​
292​
292​
28​
-262​
262​
29​
236​
236​
30​
-205​
205​
31​
152​
152​
32​
140​
140​
33​
95​
95​
34​
-85​
85​
35​
15​
15​
 

Watch MrExcel Video

Forum statistics

Threads
1,123,385
Messages
5,601,329
Members
414,445
Latest member
walramgo02

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
Top