B
BobA
In three cells I have the following:
456 456 456
If I want to count the number of three digit combinations I simply multiply 3x3x3=27
445
456
464
666
All of these are examples of three digit combinations.
However there are only 6 unique combinations without any duplicates.
456
465
546
564
645
654
The numbers in the cells are always changing, but there are never more than three cells of data. For example they could be:
12 145 5678
In this example there are 24 total combinations with 6 duplicates or 18 unique combinations.
I want to be able to count the number of unique 3-digit combinations, or conversely count the number of duplicate combinations and simply subtract that from the total.
Thanks for any help
PS I can already do this with two digit combinations in two different cells, but I'm having trouble doing this for a three-digit number.
For example if I have:
345 2367
There are (4x3) or 12 total combinations and 1 duplicate (3,3) for 11 unique combinations.
Here is the formula counting the number of duplicate combinations:
=IF(I27="","",SUMPRODUCT(--(ISNUMBER(SEARCH(MID(T27,ROW(INDIRECT("x1:x"&LEN(T27))),1),U27)))))
456 456 456
If I want to count the number of three digit combinations I simply multiply 3x3x3=27
445
456
464
666
All of these are examples of three digit combinations.
However there are only 6 unique combinations without any duplicates.
456
465
546
564
645
654
The numbers in the cells are always changing, but there are never more than three cells of data. For example they could be:
12 145 5678
In this example there are 24 total combinations with 6 duplicates or 18 unique combinations.
I want to be able to count the number of unique 3-digit combinations, or conversely count the number of duplicate combinations and simply subtract that from the total.
Thanks for any help
PS I can already do this with two digit combinations in two different cells, but I'm having trouble doing this for a three-digit number.
For example if I have:
345 2367
There are (4x3) or 12 total combinations and 1 duplicate (3,3) for 11 unique combinations.
Here is the formula counting the number of duplicate combinations:
=IF(I27="","",SUMPRODUCT(--(ISNUMBER(SEARCH(MID(T27,ROW(INDIRECT("x1:x"&LEN(T27))),1),U27)))))