SanFelippo
Board Regular
- Joined
- Apr 4, 2017
- Messages
- 124
So the easiest way to explain what I am trying to do is with an example. See the sample Data below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]Investment[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current/Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine/NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]AA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Elgin[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Elgin[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
What I need is a formula that will count up the number of unique Investment types that occur in each AA based on a few other data points. For example, if I wanted to find total number of unique investments that occurred in Chicago, Elgin, Peoria, and Kenosha that are also Prior and NonRoutine, the formula I need would spit out these results:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]AA[/TD]
[TD]Unique Count
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Elgin[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
It would return these results because in Chicago, there 12 overall investments designated to that area, but there are really only 3 unique investments designated to that area (see the Investment Name).
I have a massive list with a bunch of different Investments, so going through manually to figure this out is pretty impossible.
I know there is a way to do this, probably with using the frequency function, but haven't figured it out yet. If anyone has any idea, that would be great. I'll keep working at it myself as well.
Thanks
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]Investment[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current/Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine/NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]AA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Elgin[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Elgin[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84191[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84192[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Current[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]Routine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 153"]
<tbody>[TR]
[TD="class: xl65, width: 153"]FHLMC GOLD PL V84193[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 90"]
<tbody>[TR]
[TD="class: xl65, width: 90"]Prior[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 139"]
<tbody>[TR]
[TD="class: xl65, width: 139"]NonRoutine[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
What I need is a formula that will count up the number of unique Investment types that occur in each AA based on a few other data points. For example, if I wanted to find total number of unique investments that occurred in Chicago, Elgin, Peoria, and Kenosha that are also Prior and NonRoutine, the formula I need would spit out these results:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]AA[/TD]
[TD]Unique Count
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Chicago[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Elgin[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Peoria[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Kenosha[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
It would return these results because in Chicago, there 12 overall investments designated to that area, but there are really only 3 unique investments designated to that area (see the Investment Name).
I have a massive list with a bunch of different Investments, so going through manually to figure this out is pretty impossible.
I know there is a way to do this, probably with using the frequency function, but haven't figured it out yet. If anyone has any idea, that would be great. I'll keep working at it myself as well.
Thanks