Packlock Combination

Burrgogi

Active Member
Joined
Nov 3, 2005
Messages
495
Office Version
  1. 2010
Platform
  1. Windows
I have a 4 digit padlock like this one that I have forgotten the number to. I can buy a new lock for ~$15 but I'd rather try & unlock the one I have. I'd like to create an excel sheet that contains all the different possible combinations (10,000 of them). That way, I can keep track of the numbers I've tried.

This is what I have in mind or something similar to it.
https://i.imgur.com/UlGBZFM.png

If that's too difficult, I can just as easily make do with having all the numbers in column A, straight down starting at cell A1.
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
if you are able to use PowerQuery (Get&Transform)
try this:
Code:
[SIZE=1]let
    Source = Table1,
    #"Added Custom" = Table.AddColumn(Source, "Custom", each Table1),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"source"}, {"Custom.source"}),
    #"Added Custom1" = Table.AddColumn(#"Expanded Custom", "Custom", each Table1),
    #"Expanded Custom1" = Table.ExpandTableColumn(#"Added Custom1", "Custom", {"source"}, {"Custom.source.1"}),
    #"Added Custom2" = Table.AddColumn(#"Expanded Custom1", "Custom", each Table1),
    #"Expanded Custom2" = Table.ExpandTableColumn(#"Added Custom2", "Custom", {"source"}, {"Custom.source.2"}),
    #"Merged Columns" = Table.CombineColumns(Table.TransformColumnTypes(#"Expanded Custom2", {{"source", type text}, {"Custom.source", type text}, {"Custom.source.1", type text}, {"Custom.source.2", type text}}, "en-GB"),{"source", "Custom.source", "Custom.source.1", "Custom.source.2"},Combiner.CombineTextByDelimiter("", QuoteStyle.None),"result")
in
    #"Merged Columns"[/SIZE]

example file: cartesian
 
Upvote 0
.
Download workbook : https://www.amazon.com/clouddrive/share/NL404ELIgLqL8AXuU431Obuy6JNmb6vRymQqMNYuWdM

Sample of data :

[TABLE="width: 640"]
<colgroup><col width="64" span="10" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64, align: right"]0000[/TD]
[TD="class: xl65, width: 64, align: right"]0001[/TD]
[TD="class: xl65, width: 64, align: right"]0002[/TD]
[TD="class: xl65, width: 64, align: right"]0003[/TD]
[TD="class: xl65, width: 64, align: right"]0004[/TD]
[TD="class: xl65, width: 64, align: right"]0005[/TD]
[TD="class: xl65, width: 64, align: right"]0006[/TD]
[TD="class: xl65, width: 64, align: right"]0007[/TD]
[TD="class: xl65, width: 64, align: right"]0008[/TD]
[TD="class: xl65, width: 64, align: right"]0009[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0010[/TD]
[TD="class: xl65, align: right"]0011[/TD]
[TD="class: xl65, align: right"]0012[/TD]
[TD="class: xl65, align: right"]0013[/TD]
[TD="class: xl65, align: right"]0014[/TD]
[TD="class: xl65, align: right"]0015[/TD]
[TD="class: xl65, align: right"]0016[/TD]
[TD="class: xl65, align: right"]0017[/TD]
[TD="class: xl65, align: right"]0018[/TD]
[TD="class: xl65, align: right"]0019[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0020[/TD]
[TD="class: xl65, align: right"]0021[/TD]
[TD="class: xl65, align: right"]0022[/TD]
[TD="class: xl65, align: right"]0023[/TD]
[TD="class: xl65, align: right"]0024[/TD]
[TD="class: xl65, align: right"]0025[/TD]
[TD="class: xl65, align: right"]0026[/TD]
[TD="class: xl65, align: right"]0027[/TD]
[TD="class: xl65, align: right"]0028[/TD]
[TD="class: xl65, align: right"]0029[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0030[/TD]
[TD="class: xl65, align: right"]0031[/TD]
[TD="class: xl65, align: right"]0032[/TD]
[TD="class: xl65, align: right"]0033[/TD]
[TD="class: xl65, align: right"]0034[/TD]
[TD="class: xl65, align: right"]0035[/TD]
[TD="class: xl65, align: right"]0036[/TD]
[TD="class: xl65, align: right"]0037[/TD]
[TD="class: xl65, align: right"]0038[/TD]
[TD="class: xl65, align: right"]0039[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0040[/TD]
[TD="class: xl65, align: right"]0041[/TD]
[TD="class: xl65, align: right"]0042[/TD]
[TD="class: xl65, align: right"]0043[/TD]
[TD="class: xl65, align: right"]0044[/TD]
[TD="class: xl65, align: right"]0045[/TD]
[TD="class: xl65, align: right"]0046[/TD]
[TD="class: xl65, align: right"]0047[/TD]
[TD="class: xl65, align: right"]0048[/TD]
[TD="class: xl65, align: right"]0049[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0050[/TD]
[TD="class: xl65, align: right"]0051[/TD]
[TD="class: xl65, align: right"]0052[/TD]
[TD="class: xl65, align: right"]0053[/TD]
[TD="class: xl65, align: right"]0054[/TD]
[TD="class: xl65, align: right"]0055[/TD]
[TD="class: xl65, align: right"]0056[/TD]
[TD="class: xl65, align: right"]0057[/TD]
[TD="class: xl65, align: right"]0058[/TD]
[TD="class: xl65, align: right"]0059[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0060[/TD]
[TD="class: xl65, align: right"]0061[/TD]
[TD="class: xl65, align: right"]0062[/TD]
[TD="class: xl65, align: right"]0063[/TD]
[TD="class: xl65, align: right"]0064[/TD]
[TD="class: xl65, align: right"]0065[/TD]
[TD="class: xl65, align: right"]0066[/TD]
[TD="class: xl65, align: right"]0067[/TD]
[TD="class: xl65, align: right"]0068[/TD]
[TD="class: xl65, align: right"]0069[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0070[/TD]
[TD="class: xl65, align: right"]0071[/TD]
[TD="class: xl65, align: right"]0072[/TD]
[TD="class: xl65, align: right"]0073[/TD]
[TD="class: xl65, align: right"]0074[/TD]
[TD="class: xl65, align: right"]0075[/TD]
[TD="class: xl65, align: right"]0076[/TD]
[TD="class: xl65, align: right"]0077[/TD]
[TD="class: xl65, align: right"]0078[/TD]
[TD="class: xl65, align: right"]0079[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0080[/TD]
[TD="class: xl65, align: right"]0081[/TD]
[TD="class: xl65, align: right"]0082[/TD]
[TD="class: xl65, align: right"]0083[/TD]
[TD="class: xl65, align: right"]0084[/TD]
[TD="class: xl65, align: right"]0085[/TD]
[TD="class: xl65, align: right"]0086[/TD]
[TD="class: xl65, align: right"]0087[/TD]
[TD="class: xl65, align: right"]0088[/TD]
[TD="class: xl65, align: right"]0089[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0090[/TD]
[TD="class: xl65, align: right"]0091[/TD]
[TD="class: xl65, align: right"]0092[/TD]
[TD="class: xl65, align: right"]0093[/TD]
[TD="class: xl65, align: right"]0094[/TD]
[TD="class: xl65, align: right"]0095[/TD]
[TD="class: xl65, align: right"]0096[/TD]
[TD="class: xl65, align: right"]0097[/TD]
[TD="class: xl65, align: right"]0098[/TD]
[TD="class: xl65, align: right"]0099[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0100[/TD]
[TD="class: xl65, align: right"]0101[/TD]
[TD="class: xl65, align: right"]0102[/TD]
[TD="class: xl65, align: right"]0103[/TD]
[TD="class: xl65, align: right"]0104[/TD]
[TD="class: xl65, align: right"]0105[/TD]
[TD="class: xl65, align: right"]0106[/TD]
[TD="class: xl65, align: right"]0107[/TD]
[TD="class: xl65, align: right"]0108[/TD]
[TD="class: xl65, align: right"]0109[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0110[/TD]
[TD="class: xl65, align: right"]0111[/TD]
[TD="class: xl65, align: right"]0112[/TD]
[TD="class: xl65, align: right"]0113[/TD]
[TD="class: xl65, align: right"]0114[/TD]
[TD="class: xl65, align: right"]0115[/TD]
[TD="class: xl65, align: right"]0116[/TD]
[TD="class: xl65, align: right"]0117[/TD]
[TD="class: xl65, align: right"]0118[/TD]
[TD="class: xl65, align: right"]0119[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0120[/TD]
[TD="class: xl65, align: right"]0121[/TD]
[TD="class: xl65, align: right"]0122[/TD]
[TD="class: xl65, align: right"]0123[/TD]
[TD="class: xl65, align: right"]0124[/TD]
[TD="class: xl65, align: right"]0125[/TD]
[TD="class: xl65, align: right"]0126[/TD]
[TD="class: xl65, align: right"]0127[/TD]
[TD="class: xl65, align: right"]0128[/TD]
[TD="class: xl65, align: right"]0129[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0130[/TD]
[TD="class: xl65, align: right"]0131[/TD]
[TD="class: xl65, align: right"]0132[/TD]
[TD="class: xl65, align: right"]0133[/TD]
[TD="class: xl65, align: right"]0134[/TD]
[TD="class: xl65, align: right"]0135[/TD]
[TD="class: xl65, align: right"]0136[/TD]
[TD="class: xl65, align: right"]0137[/TD]
[TD="class: xl65, align: right"]0138[/TD]
[TD="class: xl65, align: right"]0139[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0140[/TD]
[TD="class: xl65, align: right"]0141[/TD]
[TD="class: xl65, align: right"]0142[/TD]
[TD="class: xl65, align: right"]0143[/TD]
[TD="class: xl65, align: right"]0144[/TD]
[TD="class: xl65, align: right"]0145[/TD]
[TD="class: xl65, align: right"]0146[/TD]
[TD="class: xl65, align: right"]0147[/TD]
[TD="class: xl65, align: right"]0148[/TD]
[TD="class: xl65, align: right"]0149[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0150[/TD]
[TD="class: xl65, align: right"]0151[/TD]
[TD="class: xl65, align: right"]0152[/TD]
[TD="class: xl65, align: right"]0153[/TD]
[TD="class: xl65, align: right"]0154[/TD]
[TD="class: xl65, align: right"]0155[/TD]
[TD="class: xl65, align: right"]0156[/TD]
[TD="class: xl65, align: right"]0157[/TD]
[TD="class: xl65, align: right"]0158[/TD]
[TD="class: xl65, align: right"]0159[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]0160[/TD]
[TD="class: xl65, align: right"]0161[/TD]
[TD="class: xl65, align: right"]0162[/TD]
[TD="class: xl65, align: right"]0163[/TD]
[TD="class: xl65, align: right"]0164[/TD]
[TD="class: xl65, align: right"]0165[/TD]
[TD="class: xl65, align: right"]0166[/TD]
[TD="class: xl65, align: right"]0167[/TD]
[TD="class: xl65, align: right"]0168[/TD]
[TD="class: xl65, align: right"]0169[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Logit, thank you for doing that. I need a blank row inserted in between each line so that I can mark it "Yes" or "No"
Example:
yNvyps6.png
 
Upvote 0
Logit - please disregard my previous message.

Sandy666 - thanks for the file. It will do. What is PowerQuery by the way?
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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