Discussion Re: Questions about Using Formula on Shapes in Excel
https://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/3046042#M127233
If it is just a tic-tac-toe, then I would use 1 formula on a different cell to analyze the outcome/data of 9 cells. And then I would use 9 checkboxes to throw/set true or false vale in those 9 cells. A good tic-tac-toe game on excel. However, the checkboxes would be too small for a game.<BR />Alternately: I would use the 9 cells to validate only X and O inputs.Sun, 26 Dec 2021 18:07:40 GMTNowshadAhmed2021-12-26T18:07:40ZQuestions about Using Formula on Shapes
https://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/2894827#M119871
<P>I created a MS Excel file about playing Tic-Tac-Toe. I can make it to show the images dynamically based on user input. </P><P> </P><P>However, I found it use too many formula (9 formula, each cell it using its own formula). I would like to use a single formula for the cells (9 cells). The situation I am now encountering is that the formula on Shape does not "determine" which cell is containing the shape.</P><P> </P><P>Is it possible to use a single formula for the 9 cells (shapes)?</P><P> </P><P>Also, is it possible to make the shapes un-selectable under worksheet protection? </P><P> </P><P>I do not want VBA approach. Thank you.</P><P> </P><P>The excel version I am using is Excel 2019.</P><P> </P>Thu, 28 Oct 2021 09:46:40 GMThttps://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/2894827#M119871Willy Lau2021-10-28T09:46:40ZRe: Questions about Using Formula on Shapes
https://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/2902480#M120180
<P><LI-USER uid="97717"></LI-USER> wrote: </P><P><EM>Is it possible to use a single formula for the 9 cells (shapes)?</EM></P><P class="lia-indent-padding-left-30px">I don't think so. What appears in a given cell is dependent (when using formulas) on the formula that is IN that cell. So nine cells need nine formulas (at a minimum).</P><P> </P><P><EM>Also, is it possible to make the shapes un-selectable under worksheet protection? </EM></P><P class="lia-indent-padding-left-30px">I think so, but you've hidden and protected everything, so it's hard to know how you're achieving what you're achieving even now. When you come asking for help here, you'd help us help you if you both unprotected and made visible the various functions/formulas/whatever.</P><P> </P><P><EM>I do not want VBA approach.</EM></P><P class="lia-indent-padding-left-30px">I'm with you on that general preference, but there are times when VBA works better than straight formulas/functions.</P><P class="lia-indent-padding-left-30px"> </P><P>Anyway, why don't you reveal more of the inner workings for what you have here so those who know BOTH functions AND VBA can offer informed suggestions.</P>Fri, 29 Oct 2021 22:01:07 GMThttps://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/2902480#M120180mathetes2021-10-29T22:01:07ZRe: Questions about Using Formula on Shapes
https://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/2936564#M121344
<P><LI-USER uid="425987"></LI-USER> </P><P>Thank you very much for your reply.</P><P> </P><P>It is sad that I cannot use a single formula for the 9 cells. I thought I might use a formula with relative address for the 9 cells. I tried in many way, but I cannot make it happen.</P><P> </P><P>Sorry for the hidden and protected cells. </P><OL><LI>The hidden cells are the cells that I do not use. Hidding them is to put the focus on the cells that I do not hide.</LI><LI>The protected worksheet is to show the "thing" I want to archieve. For example, just press "x" or "o" to play it. Cell [A1] and those description is to show the problem I am facing.</LI><LI>The protected worksheet does not apply password. Just un-protect the worksheet can see the formulas.</LI></OL><P> </P><P>Thank you for the suggestion to me to conside about VBA. I understand VBA might be a better way to it. However, if VBA is used, there is no way to use formula (I think VBA can create shapes with a specified image/move the focus to cells when a shape is selected/after user input, just clear the input but create a desired shape on the cell, etc. In addition, the target users do not want to enable VBA. Hence, VBA will not be used.</P><P> </P><P>Currently, the way how is work is as below:</P><OL><LI>I added comments in those 9 cells. The context of the comments is the named formula I use on the shapes that are in the 9 cells. Hence, I used 9 formulas.<BR />>>> L = left,<BR />>>> M = middle,<BR />>>> R = right,<BR />>>> T = top, and<BR />>>> B = bottom<BR />e.g. LT >> top left (using "__LT" named formula)</LI><LI>However, I changed the formula of the shapes in Cell [B3] and Cell [C3] from "__LM" and "__MM" to "__center" and "__center" (<U>both shapes use the same formula</U>). It is what I am hoping to achieve, "a single formula with relative address to be used in 9 cells" so that I do not need to create those 9 formulas.</LI><LI>BUT, although the named formula "<STRONG>__center</STRONG>" is used in Cell [B3] and Cell [C3], the relative address in the formula does not work. The "does not work" means that the shapes in Cell [B3] and Cell [C3] do not "realize" that they are in Cell [B3] and Cell [C3]. They keep referring to Cell [A1].</LI><LI>The above 3 points are related to my first question (is it possible to use a single <STRONG><FONT color="#00FF00">[named]</FONT></STRONG> formula <STRONG><FONT color="#00FF00">[</FONT><FONT color="#00FF00">with relative address]</FONT> </STRONG>for the 9 cells <FONT color="#00FF00"><STRONG>[to replace those 9 named formulas]</STRONG></FONT>).<BR /><STRONG><FONT color="#FF9900">Note</FONT></STRONG>: the <FONT color="#00FF00">green</FONT> words are added just in this post to describe more details.<BR /><BR /><BR /></LI><LI>The below points are related to my second questions (is it possible to make the shapes [in those 9 cells] un-selectable <STRONG><FONT color="#00FF00">[and not be able to get focus when clicked, in order to click there to have the event to click on the cell itself, not the shapes]</FONT></STRONG> under worksheet protection?)<BR /><STRONG><FONT color="#FF9900">Note</FONT></STRONG>: the <FONT color="#00FF00">green</FONT> words are added just in this post to describe more details.</LI><LI>Without VBA, can I click on those 9 cells (even click on the shapes' area) to let me input "x" or "o" directly in the cells<STRONG>?</STRONG></LI></OL><P> </P><P>Thank you very much.</P>Sun, 07 Nov 2021 17:19:54 GMThttps://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/2936564#M121344Willy Lau2021-11-07T17:19:54ZRe: Questions about Using Formula on Shapes
https://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/3046042#M127233
If it is just a tic-tac-toe, then I would use 1 formula on a different cell to analyze the outcome/data of 9 cells. And then I would use 9 checkboxes to throw/set true or false vale in those 9 cells. A good tic-tac-toe game on excel. However, the checkboxes would be too small for a game.<BR />Alternately: I would use the 9 cells to validate only X and O inputs.Sun, 26 Dec 2021 18:07:40 GMThttps://techcommunity.microsoft.com/t5/excel/questions-about-using-formula-on-shapes/m-p/3046042#M127233NowshadAhmed2021-12-26T18:07:40Z