Did you check the results on the added sheet? Does it reflect what you show in Post #1 as the required result. If your data is sorted as in your example it should give your a unique count.