Hello and welcome to the forum,
One direct and rough way to do this is by using this Array formula
=IFERROR(INDEX(A1:J1,LARGE(IF(A1:J1<>0,COLUMN(A1:J1)),3)),"")&IFERROR(INDEX(A1:J1,LARGE(IF(A1:J1<>0,COLUMN(A1:J1)),2)),"")&IFERROR(INDEX(A1:J1,LARGE(IF(A1:J1<>0,COLUMN(A1:J1)),1)),"")
Assuming you have ten random one-digit number from A1 to J1, paste that formula on K2.
Note that because it is an Array formula, you will need to confirm with Ctrl-Shift-Enter, not just Enter. A way to do this is that after you paste the formula on K2, click on the formula bar (to edit it), then hold Ctrl-Shift and hit Enter. If you see the formula being wrapped inside a { } then you did it right.
Bookmarks