Tiago MF
Member
Hello,
I need a formula to obtain all the unique values from an alphanumeric sequence. Hopefully later I'll be able to adapt it for any kind of sequence but for now it can be for this particular sequence that can be broken into 3 sets: first and third sets have two letters each and each letter can be any from A to Z. second set has two numbers, each can range from 0 to 9. So something with this format "LL-NN-LL". Values from this sequence would be for example:
Now the formula needs to be something that I can drag down and it will show me all the possible combinations when we offset one of the members of the sequence.
So imagine, first value would be "AA-00-AA", next could be "AA-00-AB" and so on until "ZZ-99-ZZ".
My approach so far was having two named ranges, one called "alpha" containing all the letters from A to Z and another called "numeric" with all the numbers and then use a formula with INDEXes but that's where I got lost...I looked around and found something that was helping me with one of the lettered sets:
=INDEX(alpha;INT(MOD(ROWS(A$2:A2)/27;27))+1)&INDEX(alpha;MOD(ROWS(A$2:A2);27))
, but when I tried to extend it to include the other sets it started to become very confusing and I don't think I was getting the intended result..
Can someone please help?
If there's something about this request that isn't clear please tell me and I'll reformulate.
Much appreciated!
I need a formula to obtain all the unique values from an alphanumeric sequence. Hopefully later I'll be able to adapt it for any kind of sequence but for now it can be for this particular sequence that can be broken into 3 sets: first and third sets have two letters each and each letter can be any from A to Z. second set has two numbers, each can range from 0 to 9. So something with this format "LL-NN-LL". Values from this sequence would be for example:
- TY-67-EP
- KA-03-WW
Now the formula needs to be something that I can drag down and it will show me all the possible combinations when we offset one of the members of the sequence.
So imagine, first value would be "AA-00-AA", next could be "AA-00-AB" and so on until "ZZ-99-ZZ".
My approach so far was having two named ranges, one called "alpha" containing all the letters from A to Z and another called "numeric" with all the numbers and then use a formula with INDEXes but that's where I got lost...I looked around and found something that was helping me with one of the lettered sets:
=INDEX(alpha;INT(MOD(ROWS(A$2:A2)/27;27))+1)&INDEX(alpha;MOD(ROWS(A$2:A2);27))
, but when I tried to extend it to include the other sets it started to become very confusing and I don't think I was getting the intended result..
Can someone please help?
If there's something about this request that isn't clear please tell me and I'll reformulate.
Much appreciated!