You can do this with formulas and a couple of helper arrays. Say your data is in columns A through J, starting in row 1. Use columns L through P for the five results. Columns R through AA are the first helper array and columns AC through AL are the second helper array. You can hide the helper arrays or move them elsewhere (just adjust the column reference calculations).
Let's start with the first helper array. Excel has all kinds of functions that work from left to right but none that work from right to left (unless you are using the Israeli edition :-) ). The first helper array just reverses the order of the data. Cell R1 would contain:
Copy this across to cells S1 through AA1.
The second helper array determines the locations and sequence numbers of the non-zero values. Cell AC1 contains:
Copy this across to columns AD through AL.
Now for the result values. Enter this formula in L1 and copy to M1 through P1:
Edit the M through P formulas, replacing the search parameter in the MATCH function with 2 through 5, so the M through P formulas would be:
Now all of the formulas can be copied down the sheet as needed.