This is my code ver.II:
Assumptions:
A2:A7 contain 6 values that conform to the CountDown rules
B2: =COUNTIF($A$2:$A$7,A2) and fill through B7
O5 holds a non-zero target number
The macro writes the rest of what you will see.
Yes, I know the placement is strange... I did this in a hurry.
<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> CountDown()
<SPAN style="color:#00007F">Dim</SPAN> ValueArray(8)
<SPAN style="color:#00007F">Dim</SPAN> OperatorArray(3)
<SPAN style="color:#00007F">Dim</SPAN> r, c <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>
Range("C9:M9", "O9").ClearContents
Application.ScreenUpdating = <SPAN style="color:#00007F">False</SPAN>
<SPAN style="color:#007F00">'Get Values from A2:A7</SPAN>
<SPAN style="color:#00007F">For</SPAN> a = 0 <SPAN style="color:#00007F">To</SPAN> 5
ValueArray(a) = Range("A" & a + 2)
<SPAN style="color:#00007F">Next</SPAN> a
<SPAN style="color:#007F00">'Initialize operators</SPAN>
OperatorArray(0) = "+"
OperatorArray(1) = "-"
OperatorArray(2) = "/"
OperatorArray(3) = "*"
<SPAN style="color:#007F00">'Initialize row and column values</SPAN>
r = 1
c = 3
StartTime = Timer
<SPAN style="color:#00007F">Do</SPAN>
<SPAN style="color:#007F00">'Run possibilities for 3 value strings</SPAN>
<SPAN style="color:#00007F">For</SPAN> i = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> j = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> k = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> v = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> w = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#007F00">'Paste Values</SPAN>
Cells(9, 3) = ValueArray(i)
Cells(9, 5) = ValueArray(j)
Cells(9, 7) = ValueArray(k)
Cells(9, 4) = OperatorArray(v)
Cells(9, 6) = OperatorArray(w)
<SPAN style="color:#007F00">'Make sure all values are unique</SPAN>
<SPAN style="color:#00007F">For</SPAN> b = 3 <SPAN style="color:#00007F">To</SPAN> 7 <SPAN style="color:#00007F">Step</SPAN> 2
NumUses = WorksheetFunction.CountIf(Range("C9:M9"), Cells(9, b))
MaxUses = WorksheetFunction.Index(Range("A2:B7"), WorksheetFunction.Match(Cells(9, b), Range("A2:A7"), 0), 2)
<SPAN style="color:#00007F">If</SPAN> NumUses > MaxUses <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">GoTo</SPAN> SkipValue3
<SPAN style="color:#00007F">Next</SPAN> b
<SPAN style="color:#007F00">'Paste formula</SPAN>
Cells(9, 15) = "=" & ValueArray(i) & OperatorArray(v) & ValueArray(j) & OperatorArray(w) & ValueArray(k)
<SPAN style="color:#007F00">'Test for goal</SPAN>
<SPAN style="color:#00007F">If</SPAN> Range("O9").Value = Range("O5").Value <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">GoTo</SPAN> ByeBye
<SPAN style="color:#00007F">Next</SPAN> w
<SPAN style="color:#00007F">Next</SPAN> v
SkipValue3:
<SPAN style="color:#00007F">Next</SPAN> k
<SPAN style="color:#00007F">Next</SPAN> j
<SPAN style="color:#00007F">Next</SPAN> i
<SPAN style="color:#007F00">'Run possibilities for 4 value strings</SPAN>
<SPAN style="color:#00007F">For</SPAN> i = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> j = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> k = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> l = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> v = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> w = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> x = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#007F00">'Paste Values</SPAN>
<SPAN style="color:#007F00">'This is probably pretty expensive, but Countif is the only way I can</SPAN>
<SPAN style="color:#007F00">'think of to make sure values aren't overused...</SPAN>
Cells(9, 3) = ValueArray(i)
Cells(9, 5) = ValueArray(j)
Cells(9, 7) = ValueArray(k)
Cells(9, 9) = ValueArray(l)
Cells(9, 4) = OperatorArray(v)
Cells(9, 6) = OperatorArray(w)
Cells(9, 8) = OperatorArray(x)
<SPAN style="color:#007F00">'Make sure all values are unique</SPAN>
<SPAN style="color:#00007F">For</SPAN> b = 3 <SPAN style="color:#00007F">To</SPAN> 7 <SPAN style="color:#00007F">Step</SPAN> 2
NumUses = WorksheetFunction.CountIf(Range("C9:M9"), Cells(9, b))
MaxUses = WorksheetFunction.Index(Range("A2:B7"), WorksheetFunction.Match(Cells(9, b), Range("A2:A7"), 0), 2)
<SPAN style="color:#00007F">If</SPAN> NumUses > MaxUses <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">GoTo</SPAN> SkipValue4
<SPAN style="color:#00007F">Next</SPAN> b
<SPAN style="color:#007F00">'Paste formula</SPAN>
Cells(9, 15) = "=" & ValueArray(i) & OperatorArray(v) & ValueArray(j) & OperatorArray(w) & ValueArray(k) & OperatorArray(x) & ValueArray(l)
<SPAN style="color:#007F00">'Test for goal</SPAN>
<SPAN style="color:#00007F">If</SPAN> Range("O9").Value = Range("O5").Value <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">GoTo</SPAN> ByeBye
<SPAN style="color:#00007F">Next</SPAN> x
<SPAN style="color:#00007F">Next</SPAN> w
<SPAN style="color:#00007F">Next</SPAN> v
SkipValue4:
<SPAN style="color:#00007F">Next</SPAN> l
<SPAN style="color:#00007F">Next</SPAN> k
<SPAN style="color:#00007F">Next</SPAN> j
<SPAN style="color:#00007F">Next</SPAN> i
<SPAN style="color:#007F00">'Run possibilities for 5 value strings</SPAN>
<SPAN style="color:#00007F">For</SPAN> i = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> j = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> k = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> l = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> m = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> v = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> w = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> x = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> y = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#007F00">'Paste Values</SPAN>
Cells(9, 3) = ValueArray(i)
Cells(9, 5) = ValueArray(j)
Cells(9, 7) = ValueArray(k)
Cells(9, 9) = ValueArray(l)
Cells(9, 11) = ValueArray(m)
Cells(9, 4) = OperatorArray(v)
Cells(9, 6) = OperatorArray(w)
Cells(9, 8) = OperatorArray(x)
Cells(9, 10) = OperatorArray
<SPAN style="color:#007F00">'Make sure all values are unique</SPAN>
<SPAN style="color:#00007F">For</SPAN> b = 3 <SPAN style="color:#00007F">To</SPAN> 11 <SPAN style="color:#00007F">Step</SPAN> 2
NumUses = WorksheetFunction.CountIf(Range("C9:M9"), Cells(9, b))
MaxUses = WorksheetFunction.Index(Range("A2:B7"), WorksheetFunction.Match(Cells(9, b), Range("A2:A7"), 0), 2)
<SPAN style="color:#00007F">If</SPAN> NumUses > MaxUses <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">GoTo</SPAN> SkipValue5
<SPAN style="color:#00007F">Next</SPAN> b
<SPAN style="color:#007F00">'Paste formula</SPAN>
Cells(9, 15) = "=" & ValueArray(i) & OperatorArray(v) & ValueArray(j) & OperatorArray(w) & ValueArray(k) _
& OperatorArray(x) & ValueArray(l) & OperatorArray
& ValueArray(m)
<SPAN style="color:#007F00">'Test for goal</SPAN>
<SPAN style="color:#00007F">If</SPAN> Range("O9").Value = Range("O5").Value <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">GoTo</SPAN> ByeBye
<SPAN style="color:#00007F">Next</SPAN> y
<SPAN style="color:#00007F">Next</SPAN> x
<SPAN style="color:#00007F">Next</SPAN> w
<SPAN style="color:#00007F">Next</SPAN> v
SkipValue5:
<SPAN style="color:#00007F">Next</SPAN> m
<SPAN style="color:#00007F">Next</SPAN> l
<SPAN style="color:#00007F">Next</SPAN> k
<SPAN style="color:#00007F">Next</SPAN> j
<SPAN style="color:#00007F">Next</SPAN> i
<SPAN style="color:#007F00">'Run possibilities for 6 value strings</SPAN>
<SPAN style="color:#00007F">For</SPAN> i = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> j = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> k = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> l = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> m = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> n = 0 <SPAN style="color:#00007F">To</SPAN> 5
<SPAN style="color:#00007F">For</SPAN> v = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> w = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> x = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> y = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#00007F">For</SPAN> z = 0 <SPAN style="color:#00007F">To</SPAN> 3
<SPAN style="color:#007F00">'Paste Values</SPAN>
Cells(9, 3) = ValueArray(i)
Cells(9, 5) = ValueArray(j)
Cells(9, 7) = ValueArray(k)
Cells(9, 9) = ValueArray(l)
Cells(9, 11) = ValueArray(m)
Cells(9, 13) = ValueArray
Cells(9, 4) = OperatorArray(v)
Cells(9, 6) = OperatorArray(w)
Cells(9, 8) = OperatorArray(x)
Cells(9, 10) = OperatorArray
Cells(9, 12) = OperatorArray(z)
<SPAN style="color:#007F00">'Make sure all values are unique</SPAN>
<SPAN style="color:#00007F">For</SPAN> b = 3 <SPAN style="color:#00007F">To</SPAN> 13 <SPAN style="color:#00007F">Step</SPAN> 2
NumUses = WorksheetFunction.CountIf(Range("C9:M9"), Cells(9, b))
MaxUses = WorksheetFunction.Index(Range("A2:B7"), WorksheetFunction.Match(Cells(9, b), Range("A2:A7"), 0), 2)
<SPAN style="color:#00007F">If</SPAN> NumUses > MaxUses <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">GoTo</SPAN> SkipValue6
<SPAN style="color:#00007F">Next</SPAN> b
<SPAN style="color:#007F00">'Paste formula</SPAN>
Cells(9, 15) = "=" & ValueArray(i) & OperatorArray(v) & ValueArray(j) & OperatorArray(w) & ValueArray(k) _
& OperatorArray(x) & ValueArray(l) & OperatorArray
& ValueArray(m) & OperatorArray(z) & ValueArray
<SPAN style="color:#007F00">'Test for goal</SPAN>
<SPAN style="color:#00007F">If</SPAN> Range("O9").Value = Range("O5").Value <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">GoTo</SPAN> ByeBye
<SPAN style="color:#00007F">Next</SPAN> z
<SPAN style="color:#00007F">Next</SPAN> y
<SPAN style="color:#00007F">Next</SPAN> x
<SPAN style="color:#00007F">Next</SPAN> w
<SPAN style="color:#00007F">Next</SPAN> v
SkipValue6:
<SPAN style="color:#00007F">Next</SPAN> n
<SPAN style="color:#00007F">Next</SPAN> m
<SPAN style="color:#00007F">Next</SPAN> l
<SPAN style="color:#00007F">Next</SPAN> k
<SPAN style="color:#00007F">Next</SPAN> j
<SPAN style="color:#00007F">Next</SPAN> i
<SPAN style="color:#00007F">Loop</SPAN>
MsgBox "Sorry, that goal is not possible."
ByeBye:
EndTime = Timer
Application.ScreenUpdating = <SPAN style="color:#00007F">True</SPAN>
MsgBox "Process took " & EndTime - StartTime & " seconds"
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN>
</FONT>