Wow, puzzle!
Love it :-)
Well, you have whole set of formulas in first square. I've changed them (you had 49 similar formulas, but each one different - changed manually) to one universal one to be placed in E2 and copied down/right:
This is used in original location (E2:K8)
Let me explain it a bit:
So in E2 INDIRECT evaluates content of D2 and it is compared with 9-2 so with 7
in E3 INDIRECT still evaluates content of D2, but it is compared with 9-3 so with 6, etc
in F2 INDIRECT evaluates content of D3 (because argument for COLUMN is now C1, so third column), and the result is compared with 7 (9-2), and so on, and so forth
This way we have just one formula good for all cells :-)
To have marked (filled 1) squares like these yellow in column E one need such formula checking if we are "above place for black square in our column and below square in next right":
so conjunction of 2 very similar formulas, but one with reference to current column and second to next to right
to see them in attached file look at Af2:AL8
now lets take care of situation with location above black square in current column and below one in previous to the left (see it working in AN2:AT8):
So we have all parts ready and can combine them into universal formula, used in M2 and copied down/right to S8:
Bookmarks