I have a two pivot tables constructed from some data (without the same structure), and I need to compare each entry using the Cartesian product of some other tables.
I'd like to have some nested for loops in VBA which grab data from the pivot tables based on some lists I've constructed.
My Lists:
+------+-----+
| Date | ID |
+------+-----+
| 9/1 | 123 |
| 9/2 | 124 |
| 9/3 | 200 |
| 9/4 | 201 |
| | 202 |
| | 300 |
| | 500 |
| | 999 |
+------+-----+
I can't figure out how to reference each entry in each column in these lists to use them in a command. I have in mind something like the following:
for each day in Date:
for each num in ID:
do_pivot_fetch(from pivot1, date=day, ID=num)