I am looking for ways to loop through column "Categories 1" and for each group calculate frequency from column "Categories 2"
| Categories 1 | Categories 2 |
| A | Apple |
| B | Orange |
| A | Grape |
| C | Apple |
| C | Watermelon |
| A | Grape |
| B | Orange |
It should yield something like this:
A: Apple 1,
Grape 2
B: Orange 2
C Apple 1,
Watermelon 1
It would be easier to break it up manually and then use frequency tables as long as number of categories is small. Though, I have over hundred different categories in "Categories 1" and 15-20 in "Categories 2." The dataset is larger than 500,000 records. I've looked into macros, but couldn't find any well explained examples. Any help is much appreciated.