green excel screen.jpg
I have got this formula:
=IF(OR(COUNTIF($AS2:$AW2,A$1),IF(ROW()>2,SUMPRODUCT(COUNTIF(INDEX($AS:$AW,ROW()-1,0),MOD(COLUMN()-1+{-2,-1,0,1,2},42)+1))>0,FALSE),IF(ROW()>2,SUMPRODUCT(COUNTIF(INDEX($AS:$AW,ROW()-2,0),MOD(COLUMN()-1+{-1,1},42)+1))>0,FALSE)),"X","")
In general I've got a set of 42 number ranging from 1 do 42 in normal order. Now I pick 5 random numbers out of those 42. They are presented in cells from AS to AW. Now I want every nubmer out of those 5 to be represented as an X and that previous X then creates 5 Xs below it and 2 Xs below those as shown in the screenshot.
Now, the screenshot depicts what I would like fully to achive. With the current formula I'm albe to get the "basic pattern". I would like additionally to turn some Xs green when a nubmer was selected that has been previously been covered by an X, and also it would be also nice when the total number of the green Xs would be shown in the AQ column.
Now, I could perfectly live with that, but if there is any chance to make the cells turn black when a number was selected that was not covered by an X I would be in heaven
Thank you in advance
Bookmarks