I would like to count unique values in Column B where the value in Column A is the same. Sample data is below with manually entered answer as an example. In the example the first 3 lines have the same value in Column A but the column B number are the same so the unique count is 1. If you look to lines 4 & 5 Column A is the same but Column B has 2 different Del# matching to the same value in Column A so the unique count of B for row 4&5 is 2 Hopefully this helps. I can't seem to come up wit a formula so my only thought is to achieve this from a macro. The Shipment number will always ne in column A and the Del# in Column B. I will need the answer to be placed in column Q same row. The example shows exactly how I need the data to calculate, but I removed rows in between Thanks
Ship Number Del # Correct Answer
2008139101 128700832 1
2008139101 128700832 1
2008139101 128700832 1
2008135642 128700635 2
2008135642 128700642 2
2008171448 128716173 1
2008171448 128716173 1
2008171448 128716173 1
2008142401 128678504 1
2008083763 128531095 1
2008066536 128600471 5
2008066536 128600472 5
2008066536 128600473 5
2008066536 128600474 5
2008066536 128600475 5
2008153500 128695885 5
2008153500 128695853 5
2008153500 128697045 5
2008153500 128695813 5
2008153500 128697060 5
Bookmarks