Thread: sudoku
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Wim Rijsdijk Wim Rijsdijk is offline
external usenet poster
 
Posts: 3
Default sudoku

Hello,

I am trying to make an Excel-spreadsheet, based on Sudoku puzzle.

So , cells a1 to i1 have to be filled with the numbers 1 to 9, in random
order.

a1 = empty
b1 = empty
c1 = 4
d1 = empty
e1 = empty
f1 = 6
g1 = empty
h1 = empty
i1 = empty


As you see, a1 to i1 is only filled with 4 and 6.
So the number 1, 2, 3, 5, 7, 8 and 9 has to be filled in, in the others
cells in row 1.

Now I want the following: in column k , I want to see which numbers are
used or not used, so in this example
in row 1, it is 1,2,3,5,7,8,9

The problem is, I want a formula to put on k1, with the following needs:
- check for a1 to i1 if number 1 is on it. In this example NO.
- if NO, then on k1 the number 1 has to appear
- it YES, then on k1 the number 1 has to disappear.

if((a1:i1)=1;" ";"1") is not working. What is the solution ?!?!?!?

If I have 1 formula, I can fill the other cells.

Thanks in advance, for helping me.

Greets,
Wim Rijsdijk