I have a data table of size 40'000 X 2:
- Column A has 8'000 unique values.
- Column B has 30'000 unique values.
So, on average, every unique value in column A has 5 values of column B. In reality it varies from 2 to up to 10 values.
I need this table to be resorted in such a way that it would end up being 8000 rows and 1+10 columns listing unique values from column A and lining up corresponding values from column B.
Example:
Sample.PNG
I've been trying to use these:
E2{=INDEX($A$2:$A$17, MATCH(0, COUNTIF($E$1:$E1,$A$2:$A$17), 0))}
F2{=IFERROR(INDEX($B$2:$B$17, MATCH(0, COUNTIF($E2:E2,$B$2:$B$17)+IF($A$2:$A$17<>$E2, 1, 0), 0)), "")}
It works, however, in the last 24 hours somehow I managed to get only 1000 rows finished. I played with manual and auto calculation, that doesn't help and Excel is either stuck at Calculating (8 threads): 0%, turns off automatically or just stops calculating.
Any ideas on how to improve these functions or replace them with something else that would allow Excel to do these calculations much faster would be very welcomed.
Bookmarks