I have a range consisting of 40 cells – 8 rows by 5 columns. Each row consists of 5 digits. I need to display every permutation of one digit taken from each row to form a series of rows each containing eight digits. I hope I’ve phrased my requirements comprehensibly. Would any kind soul supply some code to achieve this?
TIA.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Permutations (A2k)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Permutations (A2k)
- This topic has 9 replies, 4 voices, and was last updated 22 years, 1 month ago.
AuthorTopicWSbandido
AskWoody LoungerFebruary 28, 2003 at 7:36 pm #384108Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerFebruary 28, 2003 at 7:43 pm #657524Rob,
Designing a new puzzle
?
I hope you realise that there are 5 to the power 8 = 390625 possible choices (if the digits in a row are different). You say you want to display them all – that’s going to take time! And it exceeds the max number of 65536 rows in a worksheet.
What do you want to achieve?
-
WSbandido
AskWoody LoungerFebruary 28, 2003 at 7:58 pm #657532Very astute, Hans, but not quite. After a long day, to my shame, I’m trying to take the easy way out and use any such code to help me solve puzzles of a particular type – sort of defeats the object really. I shall rely on my brain to filter out the nonsense combinations and attack the problem anew, tomorrow. Still, a general approach to such problems would be useful for future projects and if you have the time or inclination your thoughts would be valued. But at your leisure: you have more important problems to focus on.
-
WSsdckapr
AskWoody Lounger -
WSHansV
AskWoody LoungerFebruary 28, 2003 at 10:32 pm #657598Steve,
I think that Rob (bandido) was trying to solve the puzzle in post 230187 in the Puzzles forum by brute force.
-
WSsdckapr
AskWoody LoungerFebruary 28, 2003 at 10:45 pm #657603 -
WSbandido
AskWoody LoungerMarch 1, 2003 at 11:11 am #657699Steve,
I originally wanted to find out how many valid, eight letter English words I could create by taking one letter from each row. However, I solved Ricky’s puzzle very quickly by visual inspection.
It was how you would approach this type of problem using Excel, VB or both that intrigued me.
-
-
-
WSTricky
AskWoody Lounger
-
-
-
WSsdckapr
AskWoody LoungerFebruary 28, 2003 at 7:52 pm #657527If I understand:
You have 8 rows and 5 cols. each cell of this 8×5 matrix contains 1 number.
You want to take 1 number (out of the 5 columns) from each row and combine them into 1 8-digit number.You want all the permutations (I calculate 5^8 permutations = 390,625) of this?
Where do you want the results and how do want them displayed. Do you want the list in any sort of Matrix (25 col x 15,625 rows; or 125 col x 3,125 rows) or just fill a column and when it gets full to just go to the next column (and this will take just shy of 6 FULL excel columns to list them.)
Steve
-
WSbandido
AskWoody Lounger
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
7 hours, 7 minutes ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
11 hours, 5 minutes ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
11 hours, 7 minutes ago -
Unable to eject external hard drives
by
Robertos42
10 hours, 43 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
4 hours, 24 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
11 hours, 12 minutes ago -
Synology limits hard drives
by
Susan Bradley
1 day, 15 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
17 hours, 44 minutes ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
1 day, 21 hours ago -
Upgrade Sequence
by
doneager
1 day, 14 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 14 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
13 hours, 32 minutes ago -
The incredible shrinking desktop icons
by
Thumper
2 days, 18 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
2 days, 20 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 15 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 5 hours ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
3 days, 5 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
2 days, 9 hours ago -
Speeding up 11’s search
by
Susan Bradley
17 hours, 34 minutes ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
1 day, 5 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
3 days, 19 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 days, 2 hours ago -
24H2 fixed??
by
CWBillow
2 days, 19 hours ago -
Uninstalr Updates
by
jv16
4 days, 7 hours ago -
Apple zero days for April
by
Susan Bradley
4 hours, 37 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
3 days, 5 hours ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
5 days, 6 hours ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
4 days, 13 hours ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
4 days, 21 hours ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
5 days, 15 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.