Return smallest two numbers with negatives in Excel -


if have array of numbers in excel below:

-5    1    4    -2 

i need return -5 , -2 (each in separate cell).

the =small(array, 1) not work because numbers in array less 1. there workaround can traverse trough array , return 2 smallest numbers?

assuming numbers in range a2:a5 and

if want formula return output in rows, place formula in cell , copy down.

=small($a$2:$a$5,rows(a$1:a1)) 

if want formula return output across columns, place formula in cell , copy across or right.

=small($a$2:$a$5,columns($a1:a1)) 

change ranges required.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -