Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88111

Making certain cells with an "X" turn green (edition in formula)

$
0
0

enter image description hereI 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 numbers out of those 42. They are presented in cells from AS to AW. Now I want every number 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 achieve. With the current formula I'm able to get the "basic pattern". I would like additionally to turn some Xs greenwhen a number 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 AQ cell.

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 :)


Viewing all articles
Browse latest Browse all 88111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>