Hi all, and thanks for looking.
I have a dataset of 500,000+ rows.
Column A = unique identifier (alphanumeric), with many duplicates. For example, "Abby1" might have 1,000 rows before we see "Adam1".
Column B = helper column, filled down, where a "1" indicates if this row is relevant. Otherwise it is a "0".
Maybe relevant: "Abby1" rows will always be together. Once they end and "Adam1" rows begin, "Adam1" rows are together, until the next unique identifier, and so on.
Goal: to create a list of unique values (from column A), where those values each have at least one instance of "1" in their rows. Example, if Abby has 1,000 rows, and at least one row has a "1" in helper column B, then Abby is included in this unique list.
I have tried a few functions that would work if the dataset were smaller, but the workbook either crashes / not enough memory, or calculates for too long a time. I'm guessing the solution is some clever VBA code to populate a new column with the list of unique values. If anyone is able to help with this code, I would be grateful.
Thank you again.
I have a dataset of 500,000+ rows.
Column A = unique identifier (alphanumeric), with many duplicates. For example, "Abby1" might have 1,000 rows before we see "Adam1".
Column B = helper column, filled down, where a "1" indicates if this row is relevant. Otherwise it is a "0".
Maybe relevant: "Abby1" rows will always be together. Once they end and "Adam1" rows begin, "Adam1" rows are together, until the next unique identifier, and so on.
Goal: to create a list of unique values (from column A), where those values each have at least one instance of "1" in their rows. Example, if Abby has 1,000 rows, and at least one row has a "1" in helper column B, then Abby is included in this unique list.
I have tried a few functions that would work if the dataset were smaller, but the workbook either crashes / not enough memory, or calculates for too long a time. I'm guessing the solution is some clever VBA code to populate a new column with the list of unique values. If anyone is able to help with this code, I would be grateful.
Thank you again.