Doesn't help. It was already clear you wanted the top and bottom 10 rows based on the 7th column. It remains unclear what you want for each column in the result.
Could the 7th/sort column ever have error values? This doesn't require a paragraph response, or even a sentence. One word, yes or no, would suffice. Indeed, any response other than one or the other of those 2 words wouldn't help at all. I ask because if that column could also contain error or 0 values, you'd need a FILTER call inside the SORT call. If there could be errors or 0s in the 7th column, presumably those rows should be excluded.
Of the remaining rows, do you just want error and zero values to be replaced by empty strings, "", or do you want the 9 leftmost non-error, nonzero values from columns A to P on each row?
If you just want the top and bottom 10 rows from Sheet1!A3:P356, that's easy enough to accomplish by selecting a 10-row by 16-column range and entering the ARRAY formula ([Ctrl]+[Shift]+[Enter])
where x is either 1 or -1. Entering as a traditional array formula would constrain the result to the size of the range in which you enter the array formula. No need for INDEX and SEQUENCE.
If you only want 9 columns, then no need to go out to column P. You should get that result selecting a 10-row by 9 column range and using the ARRAY formula
again where x is either 1 or -1.
If you want to use spill references like X99# to refer to the result ranges, then you would need spilled formulas. In which case
again where x is either 1 or -1, and Y is a placeholder for whichever the rightmost column returned should be.
Bookmarks