Hi Edneco,
I can see exactly what you want to achieve.
To find all possible unique combinations you need to use the "=Unique" function, like this: for the two columns, and like this for the 3 columns: . Put those formulas in your cells f2 and j2
Now you have to lists of all possible combinations in a list going down, with only 1 of each possible set of letters, e.g. "BEH".
You can easily adapt your COUNT and SUM formulas by using the "mid" function to extract the first, second or third letter.
So in your cell L3, you would replace the formula
with the formula
Copy and paste your formula downwards.
I attach your spreadsheet in which I have solved what you want to achieve.
Please thank and mark "solved" if this is the solution you are seeking.
Bookmarks