GRID 3x3, row, column, total must be 14

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,360
Office Version
  1. 2010
Hello,

Is it possible to create all possible Grids 3x3 which rows and column total must be 14 using all numbers are in column B, C, D

Apart of creating all possible Grids could be having random option too.

Example below showing 4 examples not necessary show the total of rows and columns it is shown just for example


Book1
ABCDEFGHIJ
1Choice 1Choice 2Choice 3
2059
3068
4077
508605914
609564414
714985114
8158141414
9167
1017665314
1118533814
1219456314
13239141414
14248
1525792314
1626635614
1727527514
18284141414
19293
2032957214
2133834714
2234763514
23356141414
24365
25374
26383
27392
28419
29428
30437
31446
32455
33464
34473
35482
36491
37509
38518
39527
40536
41545
42554
43563
44572
45581
46590
47608
48617
49626
50635
51644
52653
53662
54671
55680
56707
57716
58725
59734
60743
61752
62761
63770
64806
65815
66824
67833
68842
69851
70860
71905
72914
73923
74932
75941
76950
77
78
79
80
81
Sheet2


Thank you all
Excel 2000
Regards,
Moti
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Upvote 0
When you find one square, you actually find eight solutions.


Book1
JKLMNOPQR
2A932239E
3257752
4365563
5
6B329572F
7653653
8572329
9
10C563365G
11752257
12239932
13
14D275923H
15356356
16923275
17
Sheet1


E is a mirror image of A. The squares are then rotated clockwise as you go down each column. It should be easy to see that B and H are mirror images, as are C and G, and D and F.
 
Last edited:
Upvote 0
When you find one square, you actually find eight solutions.

J
K
L
M
N
O
P
Q
R
2
A
9
3
2
2
3
9
E
3
2
5
7
7
5
2
4
3
6
5
5
6
3
5
6
B
3
2
9
5
7
2
F
7
6
5
3
6
5
3
8
5
7
2
3
2
9
9
10
C
5
6
3
3
6
5
G
11
7
5
2
2
5
7
12
2
3
9
9
3
2
13
14
D
2
7
5
9
2
3
H
15
3
5
6
3
5
6
16
9
2
3
2
7
5
17

<tbody>
</tbody>
Sheet1



E is a mirror image of A. The squares are then rotated clockwise as you go down each column. It should be easy to see that B and H are mirror images, as are C and G, and D and F.
thisoldman, but how could be done these by formula or with VBA

Regards
Moti
 
Upvote 0
I'm thinking about it and getting lost. I don't think I can solve it.

These are the seventy-five distinct permutations of three non-negative integers that add to 14 (I don't think I missed any). The first triplet you place in the grid can appear in any of six positions. The choice of the second triplet is limited—it must be compatible with the one already in place. There are five possible positions for this second triplet. ...

These are the fifteen distinct triplet combinations that add to 14. I've listed the number of permutations for each combination.

Permutations
0596
0686
0773
1496
1586
1676
2396
2486
2576
2663
3383
3476
3566
4463
4553

<tbody>
</tbody>

I was wrong in my previous post, writing that finding one solution gives you eight solutions. Some solutions with repeated digits only give four distinct variations:

446644
464464
644446
464464
644446
446644

<tbody>
</tbody>
 
Upvote 0
I'm thinking about it and getting lost. I don't think I can solve it.
Hello thisoldman, thank you for your efforts

I think it's difficult to make all manually, may some one can understand the idea, and give VBA solutions

Regards
Moti
 
Upvote 0
Please do have any solution of this tricky puzzle ?

Thank you

Regards
 
Upvote 0
Hello everyone,

Search into MrExcel there is no VBA solution for 3x3 square which rows and column sums = 14
Goggled there is no such VBA in the entire goggle.
You tube also doesn't found any video regarding my request.

Please need help

Regards,
Moti
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top