I'm working on a macro that eventually takes a 20,000 row worksheet down to under 5,000. One of the first issues I cannot figure out, or find an answer to, is how to remove all but the most recent invoice for each customer. Some of the customers could have 1 or 2 invoices where most have 4 per month. I've looked for Max Date Filters where I can filter out the max date per customer and remove the remaining rows but since I'm dealing with multiple rows of data for each customer I can't find a solution that works. Below is just a snip of the spreadsheet but for this example I would like to end up with only the rows dated 11/21/23 for customer 10093631 and rows dated 11/20/2023 for customer 10108607. There will be additional filtering, look ups and formulas written into the macro to replace a lot of manual work that is currently being done to get the data into shape so starting the macro with a solution to this issue would be preferable rather then pivots or formulas in excel.
Any help would be greatly appreciated.
Thank you
Any help would be greatly appreciated.
Thank you