Need A Macro

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
Have no idea where to begin.

In column (DIGIT) are values ranging from 1-36; in column (SKIPS) are values that range from 0-XXX

Using the skip values for 5 digits, create the combination that equals a sum, that will be input.

Example combination 2-8-9-10-13 = 2,7,8,0,16= sum 33; each sum will have more than 1 combination.
Excel Workbook
TUVW
4DIGITHITSKIPSSKIPSUMS
51332528
62317627
73302734
84313032
95271731
106337625
117326336
128285726
139301835
1410310023
15113051724
1612315230
17132981633
1814307129
1915297337
2016306620
SKIPSUMS
Excel 2007
Cell Formulas
RangeFormula
U5=COUNTIF($B$14:$F$2216,$T5)
U6=COUNTIF($B$14:$F$2216,$T6)
U7=COUNTIF($B$14:$F$2216,$T7)
U8=COUNTIF($B$14:$F$2216,$T8)
U9=COUNTIF($B$14:$F$2216,$T9)
U10=COUNTIF($B$14:$F$2216,$T10)
U11=COUNTIF($B$14:$F$2216,$T11)
U12=COUNTIF($B$14:$F$2216,$T12)
U13=COUNTIF($B$14:$F$2216,$T13)
U14=COUNTIF($B$14:$F$2216,$T14)
U15=COUNTIF($B$14:$F$2216,$T15)
U16=COUNTIF($B$14:$F$2216,$T16)
U17=COUNTIF($B$14:$F$2216,$T17)
U18=COUNTIF($B$14:$F$2216,$T18)
U19=COUNTIF($B$14:$F$2216,$T19)
U20=COUNTIF($B$14:$F$2216,$T20)
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,618
Messages
6,179,916
Members
452,949
Latest member
beartooth91

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