Welcome to the forum.
Ruddles' formula works fine, but it leaves gaps in the column for the excluded numbers. I made a tiny tweak to that formula (removed the TEXT from around the ROW() at the end), then added another formula in B1 that groups the remaining numbers like so:
<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]234[/TD]
[TD="align: right"][/TD]
[TD="align: right"]234[/TD]
[TD="align: right"]234[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]235[/TD]
[TD="align: right"][/TD]
[TD="align: right"]235[/TD]
[TD="align: right"]235[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]236[/TD]
[TD="align: right"][/TD]
[TD="align: right"]236[/TD]
[TD="align: right"]236[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]238[/TD]
[TD="align: right"][/TD]
[TD="align: right"]238[/TD]
[TD="align: right"]238[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]239[/TD]
[TD="align: right"][/TD]
[TD="align: right"]239[/TD]
[TD="align: right"]239[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]243[/TD]
[TD="align: right"][/TD]
[TD="align: right"]242[/TD]
[TD="align: right"]243[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"][/TD]
[TD="align: right"]243[/TD]
[TD="align: right"]245[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]246[/TD]
[TD="align: right"][/TD]
[TD="align: right"]244[/TD]
[TD="align: right"]246[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]248[/TD]
[TD="align: right"][/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]248[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]249[/TD]
[TD="align: right"][/TD]
[TD="align: right"]246[/TD]
[TD="align: right"]249[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]253[/TD]
[TD="align: right"][/TD]
[TD="align: right"]248[/TD]
[TD="align: right"]253[/TD]
[TD="align: center"]12[/TD]
[TD="align: right"]254[/TD]
[TD="align: right"][/TD]
[TD="align: right"]249[/TD]
[TD="align: right"]254[/TD]
[TD="align: center"]13[/TD]
[TD="align: right"]256[/TD]
[TD="align: right"][/TD]
[TD="align: right"]252[/TD]
[TD="align: right"]256[/TD]
[TD="align: center"]14[/TD]
[TD="align: right"]258[/TD]
[TD="align: right"][/TD]
[TD="align: right"]253[/TD]
[TD="align: right"]258[/TD]
[TD="align: center"]15[/TD]
[TD="align: right"]259[/TD]
[TD="align: right"][/TD]
[TD="align: right"]254[/TD]
[TD="align: right"]259[/TD]
</tbody>
If entered correctly, Excel will surround with curly braces {}.
Then I went at it from another angle. The D1 formula creates a list of numbers excluding 0,1,7 with no gaps. The E1 formula looks at that list and removes numbers with duplicate digits. Combining those formulas is possible, but NOT advisable!
Since both those formulas have a lot of array processing, they are VERY slow, and combining them would make it worse. Ruddles' formula is probably faster, even with the helper column in B.
Someone else may come up with a more elegant formula solution, but this kind of thing is usually best left to VBA. Here's a macro that calculates the list: