I am looking for a macro that can find duplicates in the same column located between division markers and that have the same label in column A.
In other words, I have a spreadsheet with labels in Column and values in Column B. I want to find duplicates of values in column A, but ONLY among items with the same label in column A.
For the sake of example, suppose I have a list of countries, states, counties, and cities. Then I might only want to find duplicate city names, not duplicate county or state names.
Additionally, column B has section divisions, and I only want to find duplicates within a section. For the sake of this example, let's say Column B has some cells with the value "Region". I would only want to find duplicate cities between "Region" cells.
Attached is a spreadsheet showing the example. For the spreadsheet, the macro's result should write in Column C that "Phoenix" is a duplicate. However, it should ignore "Mesa" (because the two instances of "Mesa" are in different regions.
Bookmarks