
Originally Posted by
Special-K
This should work
You'll need to copy it down until you get to the 249 or 250 limit 5*250 = around 750 rows I guess
NOTE: DO NOT CHANGE THE ORDER OF THE LETTERS - THEY ARE CORRECT (even though the order is different to the order you stated - this is because LOOKUP needs things in alphabetical/numerical order with 0 first, MOD(...,5) will produce a 0 on every 5th line generated therefore the 0 must be moved to the first LOOKUP value so it works correctly. Consequently the results for a LOOKUP of 0 - M and C - should also be moved to the first resultant value).
=LOOKUP(MOD(ROWS($1:1),5),{0,1,2,3,4},{"M","D","U","P","T"})&INDIRECT(LOOKUP(MOD(ROWS($1:1),5),{0,1,2,3,4},{"C","A","D","D","B"})&INT((ROWS($1:1)-1)/5)+3)
Bookmarks