hi there. try this array formula in cell B2:
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
a similar eg is explained in the file of my link below*Tips & Tutorials I Compiled, sheet 57. it is in ROWS instead while yours is in columns. it also returns a bunch of text available in a column while yours is purely numbers from 1 to 312.
Bookmarks