ItalianPlatinum
Well-known Member
- Joined
- Mar 23, 2017
- Messages
- 857
- Office Version
- 365
- 2019
- Platform
- Windows
I have a very large data set that I was attempting to count the occurrences by each line but it was bogging down the system. So a way to avoid is if I can accomplish the same based off a summary tab where I list the data. Two formulas I think I need to accomplish that I am struggling to find.
Quick explanation I have a program that will consolidate based off two criteria. Cost (rounded to 4 digits) and Date. For simplicity reasons I am going to avoid date for now. After it consolidates the two, three, or four occurrences it creates a new combined lot . This is an inventory management tool. I am trying to get myself some reporting and been working on VBA to do is. I am super close just running into headaches along the way like this.
I summarized the data below, short snipbit. The data is over 500k rows that is why I figure a summary is quicker than applying formulas to each row, then summarize based off that formula later.
Quick explanation I have a program that will consolidate based off two criteria. Cost (rounded to 4 digits) and Date. For simplicity reasons I am going to avoid date for now. After it consolidates the two, three, or four occurrences it creates a new combined lot . This is an inventory management tool. I am trying to get myself some reporting and been working on VBA to do is. I am super close just running into headaches along the way like this.
I summarized the data below, short snipbit. The data is over 500k rows that is why I figure a summary is quicker than applying formulas to each row, then summarize based off that formula later.
Product | Identifier | Date Opened | Unique Lot | Cost | Cost Rounded to 4 digits | Result should be | Result should be | |||
Group A | B1 | 1/1/2020 | 1 | $ 20.91 | $ 20.9125 | Will be removed | Added Back | Difference | ||
Group A | B1 | 1/9/2019 | 2 | $ 22.00 | $ 22.0000 | B1 | 5 | 2 | -3 | |
Group A | B1 | 1/9/1999 | 3 | $ 22.00 | $ 22.0000 | C1 | 0 | 0 | 0 | |
Group A | B1 | 6/4/1999 | 4 | $ 65.00 | $ 65.0000 | D1 | 6 | 3 | -3 | |
Group A | B1 | 7/9/2000 | 5 | $ 65.00 | $ 65.0000 | E1 | 4 | 2 | -2 | |
Group A | B1 | 4/8/1988 | 6 | $ 22.00 | $ 22.0000 | |||||
Group A | C1 | 5/5/2005 | 7 | $ 35.00 | $ 35.0000 | |||||
Group A | C1 | 10/10/2020 | 8 | $ 20.96 | $ 20.9575 | |||||
Group A | C1 | 1/1/2020 | 9 | $ 40.00 | $ 40.0000 | |||||
Group A | C1 | 1/9/2019 | 10 | $ 40.99 | $ 40.9900 | |||||
Group A | C1 | 1/9/1999 | 11 | $ 41.30 | $ 41.2990 | |||||
Group A | C1 | 6/4/1999 | 12 | $ 50.56 | $ 50.5565 | |||||
Group A | D1 | 7/9/2000 | 13 | $ 51.28 | $ 51.2750 | |||||
Group A | D1 | 4/8/1988 | 14 | $ 99.97 | $ 99.9652 | |||||
Group A | D1 | 5/5/2005 | 15 | $ 20.91 | $ 20.9125 | |||||
Group A | D1 | 1/1/2020 | 16 | $ 20.91 | $ 20.9125 | |||||
Group A | D1 | 1/1/2020 | 17 | $ 99.97 | $ 99.9652 | |||||
Group A | D1 | 1/9/2019 | 18 | $ 51.28 | $ 51.2750 | |||||
Group A | E1 | 1/9/1999 | 19 | $ 41.30 | $ 41.2990 | |||||
Group A | E1 | 6/4/1999 | 20 | $ 41.30 | $ 41.2990 | |||||
Group A | E1 | 7/9/2000 | 21 | $ 51.28 | $ 51.2750 | |||||
Group A | E1 | 4/8/1988 | 22 | $ 51.28 | $ 51.2750 | |||||
Group A | E1 | 5/5/2005 | 23 | $ 50.56 | $ 50.5565 | |||||
Group A | E1 | 10/10/2020 | 24 | $ 20.96 | $ 20.9575 | |||||