Packlock Combination

Burrgogi

Active Member
Joined
Nov 3, 2005
Messages
340
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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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 :

0000000100020003000400050006000700080009
0010001100120013001400150016001700180019
0020002100220023002400250026002700280029
0030003100320033003400350036003700380039
0040004100420043004400450046004700480049
0050005100520053005400550056005700580059
0060006100620063006400650066006700680069
0070007100720073007400750076007700780079
0080008100820083008400850086008700880089
0090009100920093009400950096009700980099
0100010101020103010401050106010701080109
0110011101120113011401150116011701180119
0120012101220123012401250126012701280129
0130013101320133013401350136013701380139
0140014101420143014401450146014701480149
0150015101520153015401550156015701580159
0160016101620163016401650166016701680169

<colgroup><col width="64" span="10" style="width:48pt"> </colgroup><tbody>
</tbody>
 
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,214,891
Messages
6,122,105
Members
449,066
Latest member
Andyg666

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