Sudoku

G

Guest

All right, I had some time on my hands on a recent business trip, and I
stumbled accross this numeric puzzle called a Sudoku. I found it in the USA
Today. It was the first time I had seen it, but it's probably well known to
everyone else.

So, I started working the puzzle, and decided that Excel could do most of
the work for me. So I created some fairly complicated formulas (combinations
of nested IF's and OFFSETS) to do the process of elimination for me. The
formulas work great. Then I use conditional formatting to highlight the
cells that have been eliminated. Again, works great.

Now the part I'm stumpped on.

I used conditional formatting, to hightlight the numbers that could be
eliminated (i.e., deleted). So, as you solve one square, conditional
formatting then highlights everwhere else in the puzzle that can not be that
number. I happend to pick the color lavender. However, it becomes very
tedious to go cell by cell and delete the cells that are lavender.

What I would like to do is, run a macro that looks at the result of the
conditional formatting, and selects all the cells that are lavender.

Note: The formula I used in the conditional formatting changes from cell to
cell. So using the advanced features of FIND, do not work correctly. Not to
mention that the exterior cells have borders, while the interrior cells do
not.

Ideas?
 
L

L. Howard Kittle

Hi Jonathan,

Yeah, Sudoku is all the rage now days. My local paper started running it
daily and I too decided to let Excel 'do the heavy lifting'.

Just from an interest standpoint, I used a number of named ranges and code
to a find and delete. After entering the clue numbers, hit a button and
all empty cells have 1 - 9 entered. Select a given clue number and hit a
SIFT button and it eliminates that number in the horzional, vertical and the
9 x 9. Select the next clue and so on. Also have an Auto-Sift which will
run from top left to bottom right and do the eliminations.

Will solve the easy and some medium but does not have the deductive
reasoning capability to do the Hard and Evil puzzles.

I don't have any solution to offer on you post, just ramblin.

Regards,
Howard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top