Good morning,
I am looking to code a macro that would essentially count out all the possible permutations of a data set. For example:
Column A can be AA, AB, or AC.
Column B can be either 0 or 1.
Column C can be XX XY or XZ.
Column D can only be 6.
Is there any way for excel to read a sheet where it has the variables listed and spit out the permutations as such?
Column A | Column B |Column C | Column D
AA 0 XX 6
AA 0 XY 6
AA 0 XZ 6
AA 1 XX 6
And so on and so forth, going through all possible permutations. I would like this code to be editable, preferably where I can now add an AD option to column A and re-run the macro without much or any editing. Any and all ideas you have are much appreciated, I am really lost on how to even start this code. Thank you!
I am looking to code a macro that would essentially count out all the possible permutations of a data set. For example:
Column A can be AA, AB, or AC.
Column B can be either 0 or 1.
Column C can be XX XY or XZ.
Column D can only be 6.
Is there any way for excel to read a sheet where it has the variables listed and spit out the permutations as such?
Column A | Column B |Column C | Column D
AA 0 XX 6
AA 0 XY 6
AA 0 XZ 6
AA 1 XX 6
And so on and so forth, going through all possible permutations. I would like this code to be editable, preferably where I can now add an AD option to column A and re-run the macro without much or any editing. Any and all ideas you have are much appreciated, I am really lost on how to even start this code. Thank you!