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
Post a Comment