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:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi,

Try in cell C2:
=SMALL(ABS($B$2:$B$32),ROW()-1)

Ctrl+Shift+Entered

Drag that down the C column.
 
Upvote 0
-0.140.01
-0.040.02
-0.020.02
0.090.02
0.230.02
-0.120.02
0.210.03
0.20.03
0.040.03
0.070.04
-0.030.04
-0.070.04
-0.020.05
0.010.05
0.020.06
0.080.06
-0.150.07
0.170.07
0.330.07
-0.160.08
0.020.09
0.050.09
-0.090.12
-0.070.14
0.040.15
0.030.16
0.060.17
-0.020.2
-0.050.21
0.060.23
0.010.33
-0.03#NUM!

<colgroup><col span="2"></colgroup><tbody>
</tbody>

I tried the suggested above and this was my results. I would need it to be the closest to 0, so like 0, .1, -.1, .2, -.2 ....ect ect
 
Upvote 0
It may or may not matter, but this will return the absolute value of the number, so if the second closest to 0 is -0.1, it would return 0.1 in row 2.

EDIT: Looks like you noticed yourself!
 
Last edited:
Upvote 0
Aha,

Good spot guys. Try the same formula and multiply by SIGN of the value.

SMALL(ABS($B$2:$B$32),ROW()-1)*SIGN($B2)
 
Last edited:
Upvote 0
Did you Ctrl+Shift+Enter (CSE) the formula?

EDIT: If you're starting formula on row 3 use ROW()-2 instead of ROW()-1
 
Last edited:
Upvote 0
Ok, I think I am getting closer :) Here are a few things listed below that I noticed. 0.05 was changed to a -0.05, 0.14 was changed to -0.14 and the random 0 at the bottom.


First Column are Values

Second Column is formulas
{=SMALL(ABS($D$3:$D$34),ROW()-2)*SIGN($D3)}


-0.090
0.070.01
0.050.01
-0.1-0.01
0.150.02
-0.01-0.04
0.10.04
0.070.04
-0.04-0.04
0.140.04
0.080.04
-0.07-0.05
-0.02-0.05
-0.07-0.06
0.010.06
-0.05-0.06
0.040.07
0.060.07
0.150.07
-0.06-0.07
0.090.08
0.040.09
-0.16-0.09
-0.17-0.1
0.060.1
0.040.1
-0.17-0.14
0.010.15
-0.1-0.15
-0.04-0.16
-0.04-0.17
00

<colgroup><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
I'm really not sure why you are getting those 2 random sign errors to be honest, the 0 at the end is because it is picking up the SIGN of 0 which is 0.
 
Upvote 0
What about the 0 at the top of the column? Column B only has 1 "zero", but column C has 2 "zeros" :confused:
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,272
Members
448,558
Latest member
aivin

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