Hello all. Thank you again for this great forum and the opportunity to learn from the many questions and answers. I have a question, which I hope will make sense. I have been given a reporting task on a daily transaction log where, for example, in Column A of the spreadsheet I will have many SKUs and in Column B I will have a list of dates which will always be in sequence (i.e there will never be any days missing, but the SKUs themselves wont appear on the log every day). My task is to identify in Column C the earliest date in a series of sequential dates for a given SKU. I have given an example below of what I am seeking to do. Once I identify the 'NEW' I then need to work out the most recent date of the occurence of this 'NEW' by SKU (I am thing of a Max/Index formula which I will try out). The formula I have come up with quickly in Column C is also given below but I am wondering if there is a much straightforward way of finding the 'NEW's as there will be roughly in the order of 50K to 100K records over a whole year. Each day another day's worth of transactions is added to the current data. I would love to hear any suggestions using any approach whether formula, VBA, pivottable etc. Thanks again for taking the time to read this and help, Paul
=IF(COUNTIFS($A$2:$A$10,A2,$B$2:$B$10,B2-1)=0,"NEW","")
<tbody>
[TD="width: 75"]Date[/TD]
[TD="width: 64"][/TD]
[TD="class: xl63, align: right"]01/01/2019 [/TD]
[TD="class: xl63, align: right"]01/01/2019 [/TD]
[TD="class: xl63, align: right"]02/01/2019[/TD]
[TD="class: xl63, align: right"]02/01/2019[/TD]
[TD="class: xl63, align: right"]03/01/2019[/TD]
[TD="class: xl63, align: right"]04/01/2019 [/TD]
[TD="class: xl63, align: right"]04/01/2019[/TD]
[TD="class: xl63, align: right"]05/01/2019[/TD]
[TD="class: xl63, align: right"]06/01/2019 [/TD]
</tbody>
=IF(COUNTIFS($A$2:$A$10,A2,$B$2:$B$10,B2-1)=0,"NEW","")
SKU | |
A | NEW |
B | NEW |
B | |
A | |
B | |
A | NEW |
B | |
A | |
B | NEW |
<tbody>
[TD="width: 75"]Date[/TD]
[TD="width: 64"][/TD]
[TD="class: xl63, align: right"]01/01/2019 [/TD]
[TD="class: xl63, align: right"]01/01/2019 [/TD]
[TD="class: xl63, align: right"]02/01/2019[/TD]
[TD="class: xl63, align: right"]02/01/2019[/TD]
[TD="class: xl63, align: right"]03/01/2019[/TD]
[TD="class: xl63, align: right"]04/01/2019 [/TD]
[TD="class: xl63, align: right"]04/01/2019[/TD]
[TD="class: xl63, align: right"]05/01/2019[/TD]
[TD="class: xl63, align: right"]06/01/2019 [/TD]
</tbody>