For reasons unknown, but probably to do with wine, I decided to dedicate my evening to see if I could create an Excel sheet to play tic-tac-toe (or noughts and crosses, as we call it in the UK) using only formula.
I think that, largely, I've managed, but I can not resolve the final circular reference in the attached sheet.
As an overview - the 'board' is in cells C2:E4 and looks in column A for moves made. The board is surrounded by cells (B1:F1 and B2:B4) which detect winning lines and, if a winning line is made the result "WINNER!) is placed in cell G1.
The formulas in B6:B15 check whether each move is valid.
All of this works, but what I can't do is check for each move whether there's been a winner, because that depends on the number in column A, which informs the contents of C2:E4, which lets the cells in B1:F1 and B2:B4 check whether there's a line, which sets the value of G1, which is what I want to check.
My gut feeling is that this can not be resolved using formula, but if any of the masterminds on here want to offer suggestions that would be very useful indeed.
Please note that this exercise is utterly, utterly pointless and serves no purpose at all. Fixing this issue will not cure cancer, bring about world peace or feed starving Africans, so please don't devote any time to it at all - I just wondered if I was missing something obvious.
Thanks.
Last edited by Andrew-R; 08-20-2011 at 02:01 AM.
Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks