Here's what I'm trying to accomplish: I'm trying to get a count of the # of agents in each office. Each office has two types of agents: Listing Agent, and Selling Agent. Either class could be attributed to that agent, but the agent ID will remain the same..the agent might be listed as a Listing Agent, as a Selling Agent, or as both.
I need to find the total # of agents attributed to an office based on the data drawn into the pivot table. (see the attached spreadsheet). I already have the office ranking done, but need to finish the # of agents count.
Currently, I have a pivot table set up for each of 4 tables of records (10,000-35,000 records each), which consists of agent ID#, office ID#, agent2 ID#, office2 ID#, and a few other columns of data (not relevant to this item). My initial thought was to create a hash column for office/agent data as follows (the ..... is just for spacing):
ListingofficeID_ListingAgentID#............SellingOfficeID_SellingAgentID
1234_444444....................................11235_99992
1234_333333....................................118_eeha
144_2837.........................................198_hhhegh
118_8888.........................................1234_444444
etc.
What I'm trying to do in the above scenario is count all unique occurances of each office ID# from two columns of data (which would calculate the total # of agents). The counts below would apply from the data above. (the ..... is just for spacing)
officeid.......# of unique occurrances
1234..........2
144...........1
118.......... 2
11235.......1
198...........1
With the large mass of data (roughly 100,000 total records), I'm having trouble coming up with anything that doesn't take 20 minutes to recalculate (including setting application.screenupdating = false and application.enableevents = false to start with).
Any ideas? I'm at a loss...
THANK YOU for any and help you can provide. (Sample spreadsheet is attached)
:::a
Bookmarks