# INDEX Function to return multiple values. Trying to return smallest to largest.

#### mrwendall

##### New Member
Hi. I am trying to write an array formula that returns multiple values based in simple criteria of ">=". My array formula mostly works but I want it to return the values in order smallest to largest and I'm having a hard time figuring out what I'm doing wrong. I used this identical formula to pull data based on date and it worked perfectly but it's not working with numbers. Here is the formula. Anyone have any ideas? I've checked the source data formatting and it is in fact formatted as a number and has been refreshed. Thank you.

{=IFERROR(INDEX(\$G\$2:\$G\$2000,SMALL(IF(\$H\$2:\$H\$2000>=\$M\$1,IF(\$H\$2:\$H\$2000>=\$M\$1,ROW(\$G\$2:G\$2000)-ROW(\$G\$2)+1)),ROWS(A\$2:A2))),"")}

### Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Replies
2
Views
82
Replies
25
Views
368
Replies
3
Views
284
Replies
7
Views
80
Replies
0
Views
46

1,141,703
Messages
5,707,963
Members
421,538
Latest member
Krisco

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