Ah, that's what I thought you might mean. Can you talk about why you use spreadsheets in the first place, then? You're dealing with nontrivial problems if you hit this limitation, and you could write programs in a general-purpose language if you wanted to. So what do you get from Excel?
(I care about this, btw, because my real job is making a new spreadsheet.)
I don't know what the limit for `for` loops is, but Excel has some limits to nesting of flow control structures like `if`. For example, you cannot nest `if` statements more than seven deep. I suspect the parent poster is referring to a limitation similar to this, but for nesting `for` loops.
If you need to "program" this in an Excel spreadsheet
You can "write" this in a 6x6 block with the values And copy the formula from B2 to all the cells, so you get