I have multiple sheets that contain a table. I have another table on a different sheet where I would like to populate one of its columns with only the unique values from each of those other tables for a specific column.
Example:
Tables: Table1, Table2, Table3
Each table contains a list (list1, list2, and list3 respectively), which contains potentially 10,000-20,000 rows each.
I want Table4 to have a column (UniqueValues) to contain all of the unique values from the columns of the aforementioned tables.
Every guide I've look at insists upon using Index, Match, and CountIf. However, the values I am working with can be numerical or text, but must be treated as text. Using CountIf causes values such as "+0000" and "0000000" to be treated as equal rather than unique. Additionally, 0011243 is treated the same as 11243. It is imperative that every cell is treated exactly as it exists as text.
So, how would I do this? I'm fine with using COUNTIF if there is a workaround, but I've had to use SUMPRODUCT for other calculations I've done to get the count of each value when I populate the UniqueValues column manually using a program I wrote in Java. This workbook will be a template for distribution for this, so I would very much prefer to have the values generated from within the excel file itself.
Here's examples of what I have so far:
When I attempt to replace the CountIFs I am either doing it wrong or it tells me I'm using the wrong number of arguments.
Example:
Tables: Table1, Table2, Table3
Each table contains a list (list1, list2, and list3 respectively), which contains potentially 10,000-20,000 rows each.
I want Table4 to have a column (UniqueValues) to contain all of the unique values from the columns of the aforementioned tables.
Every guide I've look at insists upon using Index, Match, and CountIf. However, the values I am working with can be numerical or text, but must be treated as text. Using CountIf causes values such as "+0000" and "0000000" to be treated as equal rather than unique. Additionally, 0011243 is treated the same as 11243. It is imperative that every cell is treated exactly as it exists as text.
So, how would I do this? I'm fine with using COUNTIF if there is a workaround, but I've had to use SUMPRODUCT for other calculations I've done to get the count of each value when I populate the UniqueValues column manually using a program I wrote in Java. This workbook will be a template for distribution for this, so I would very much prefer to have the values generated from within the excel file itself.
Here's examples of what I have so far:
Code:
=IFERROR(IFERROR(IFERROR(INDEX(list1, MATCH(0, COUNTIF($K$12:K12, list1), 0)), INDEX(list2, MATCH(0, COUNTIF($K$12:K12, list2), 0))), INDEX(list3, MATCH(0, COUNTIF($K$12:K12, list3), 0))), "")
When I attempt to replace the CountIFs I am either doing it wrong or it tells me I'm using the wrong number of arguments.