Counting unique data in a column and then matching it with another unique data
问题 This is an embarrassingly simple question, but I was not able to find a way to figure it out for hours nor also to find an idea from online search. Suppose I have the following data (the actual data can be thousands or millions) in Excel sheet (Table 1): Name No. ID A A1 B B4 B B5 C C0 D - A A1 A A2 E - F - C C0 B B5 B B5 B B5 B B6 A A1 A A1 A A2 B B3 B B3 B B3 The character (-) in column No. ID above can be also a number 0 or a blank cell. I want to format the above data as follow (Table 2)