# top 3

#### debooo

##### Board Regular
hello,

Colum C has the results of Col A - Col B.

In D i want a formula that gives me the top 10 largest variances, but i want them to be displayed as they are (negative or positive).

currently i'm using {=large(abs(B:B),1)} entered as an array, which gives me the correct numbers. But if the largest variance is -500. the result from the array formula is giving me it as +500.

does anyone know of a way to get around this?

### Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

#### Scott Huish

##### MrExcel MVP
I'm using a range because in XL2003, you can't use whole column references in an array formula. If there are a positive and negative number that is the MAX variance, this will return the first one in the column. So if you had a -500 and a 500 and the -500 was first, it would return -500:

=INDEX(B1:B1000,MATCH(MAX(ABS(B1:B1000)),ABS(B1:B1000),0))

Confirm with CTRL-SHIFT-ENTER rather than just Enter.

#### iggydarsa

##### Well-known Member
i think abs will always make it positive - maybe you should try

{=large(B:B,1)}

#### Scott Huish

##### MrExcel MVP
iggydarsa:
The op wants the largest variance

If you have a set of

-500
37
12

Your formula would return 37 (although that formula doesn't need to be entered as an array formula), the correct answer is -500 as it is the largest variance.

#### Scott Huish

##### MrExcel MVP
Or with LARGE:

=INDEX(\$B\$1:\$B\$1000,MATCH(LARGE(ABS(\$B\$1:\$B\$1000),1),ABS(\$B\$1:\$B\$1000),0))

Confirm with CTRL-SHIFT-ENTER

#### debooo

##### Board Regular
Or with LARGE:

=INDEX(\$B\$1:\$B\$1000,MATCH(LARGE(ABS(\$B\$1:\$B\$1000),1),ABS(\$B\$1:\$B\$1000),0))

Confirm with CTRL-SHIFT-ENTER

Yup, i took your first formula and replaced max with large, it works very well, thanks.

Replies
1
Views
287
Replies
16
Views
314
Replies
6
Views
1K
Replies
3
Views
247
Replies
2
Views
668

1,191,394
Messages
5,986,352
Members
440,018
Latest member
GolfOne

### 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.

### Which adblocker are you using?

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

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