To start, I have little knowledge of VBA and have not tried to write a code for what I want to do as I don't even know where to start.
I currently have two tables. Table1 contains 48000 rows of data and two columns, a unique identifier and a cash amount for each ID. Table2 contains 50000 rows of data and two columns, a unique identifier and a cash amount for each ID. ID numbers are unique to their own table so there are often repeated IDs in the other Table. The goal of this is to combine the two tables by ID number and show the total cash amount for each ID number.
My first attempt involved using the SUMIF function to get me the totals from both tables. Although this worked for the first ID, when I tried to copy the formula to the other cells, my laptop crashed completely forcing a restart.
My second attempt involved using PivotTable wizard to combine the two ranges. However, I discovered that PivotTables cannot handle this many unique values. (Based on the popup that appeared).
My third attempt worked but I found it long and I am hoping there is a better method. I split my tables into two ranges of about 20,000 rows (so now there are 4 tables). I then used the PivotTable wizard to combine these two at a time. First was Table1 and Table3, then Table2 and Table4. Then I had to split the resulting lists again as PivotTable couldn't handle it and repeated this process. The issue with this method is I feel there is a definite possibility of missed or repeated values because of all the splitting.
During all three of these attempts, my computer repeatedly had problems and required restarts.
I don't care if a VBA solution takes a while to run, as long as it works.
I have tried looking at other examples but some I couldn't figure out how to apply them to my situation and others seemed like they weren't working with big enough files to experience some of the problems I am facing.
Thank you and please let me know if you need clarification on anything.