Looking for Assistance with Formula (Top 30 Values Closest to ZERO) Please :)

Iccreamann21

New Member
Joined
Sep 25, 2013
Messages
41
Office Version
  1. 365
Platform
  1. Windows
1
-0.14

<tbody>
</tbody>
top 30 values in column B1-B32 that is closest to 0
2
-0.04

<tbody>
</tbody>
I want to project it as a formula in C1-C30
3
-0.02

<tbody>
</tbody>
4
0.09

<tbody>
</tbody>
5
0.23

<tbody>
</tbody>
6
-0.12

<tbody>
</tbody>
7
0.21

<tbody>
</tbody>
8
0.2

<tbody>
</tbody>
9
0.04

<tbody>
</tbody>
10
0.07

<tbody>
</tbody>
11
-0.03

<tbody>
</tbody>
12
-0.07

<tbody>
</tbody>
13
-0.02

<tbody>
</tbody>
14
0.01

<tbody>
</tbody>
15
0.02

<tbody>
</tbody>
16
0.08

<tbody>
</tbody>
17
-0.15

<tbody>
</tbody>
18
0.17

<tbody>
</tbody>
19
0.33

<tbody>
</tbody>
20
-0.16

<tbody>
</tbody>
21
0.02

<tbody>
</tbody>
22
0.05

<tbody>
</tbody>
230
24
-0.07

<tbody>
</tbody>
25
0.04

<tbody>
</tbody>
26
0.03

<tbody>
</tbody>
27
0.06

<tbody>
</tbody>
28
-0.02

<tbody>
</tbody>
29
-0.05

<tbody>
</tbody>
30
0.06

<tbody>
</tbody>
31
0.01

<tbody>
</tbody>
32
-0.03

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
The first one is because that is the closest to 0 as it is equal to 0, then the last is because of multiplying by the SIGN of 0 :)
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Let me suggest 2 other approaches. If you want a formula, try:


Book1
BC
1-0.140
2-0.040.01
3-0.020.01
40.09-0.02
50.23-0.02
6-0.120.02
70.210.02
80.2-0.02
90.04-0.03
100.070.03
11-0.03-0.03
12-0.07-0.04
13-0.020.04
140.010.04
150.020.05
160.08-0.05
17-0.150.06
180.170.06
190.330.07
20-0.16-0.07
210.02-0.07
220.050.08
2300.09
24-0.07-0.12
250.04-0.14
260.03-0.15
270.06-0.16
28-0.020.17
29-0.050.2
300.060.21
310.010.23
32-0.030.33
Sheet12
Cell Formulas
RangeFormula
C1{=INDEX(B:B,MOD(SMALL(MMULT(--(ABS(B$1:B$32)>TRANSPOSE(ABS(B$1:B$32))),ROW(B$1:B$32)^0)*100+ROW(B$1:B$32),ROWS($C$1:$C1)),100))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Second, put =ABS(B1) in C1. Copy down to C32. Then sort columns B:C by column C in ascending order. Column B should give you what you want. Of course, you can copy your range somewhere else to do this if you want to keep your original list as is.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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