Hi!
I know there have been a lot of threads for finding the unique values using macro but my problem is unique in its own way.
I need to compare 2 columns from two sheets of the same workbook and find the unique value. The data that I need is from Sheet 2 column C. Sheet1 Column B has a lot of #N/A and zeros because these were v-looked up using another column (but that's another story)
<tbody>
</tbody>
I need to identify the unique values in column C Sheet 2 in comparison to column B Sheet 1. All unique values from Sheet 2 column C, will then be added to the lastrow+1 of Sheet 1 column B. so it should look like this:
<tbody>
</tbody>
Both columns have dynamic ranges. The problem with my formulas is that column B sheet 1 has a lot of 0's and #N/A's and the row number is different from Column c sheet 2, so formulas doesn't really work as it cannot find the real unique values.
I would really appreciate it if anyone could help me I'm very new to VBA, and I am just halfway through with my macro. this problem is holding me backs for weeks now.
Thanks!
I know there have been a lot of threads for finding the unique values using macro but my problem is unique in its own way.
I need to compare 2 columns from two sheets of the same workbook and find the unique value. The data that I need is from Sheet 2 column C. Sheet1 Column B has a lot of #N/A and zeros because these were v-looked up using another column (but that's another story)
Sheet1 | Sheet2 |
Column B | Column C |
Apple | Melon |
Orange | Pear |
Grape | Guava |
Lime | Grape |
#N/A | Lime |
Pear | Kiwi |
0 | Melon |
Guava | Lemon |
Melon | Banana |
#N/A |
<tbody>
</tbody>
I need to identify the unique values in column C Sheet 2 in comparison to column B Sheet 1. All unique values from Sheet 2 column C, will then be added to the lastrow+1 of Sheet 1 column B. so it should look like this:
Sheet 1 |
Column B |
Apple |
Orange |
Grape |
Lime |
#N/A |
Pear |
0 |
Guava |
Melon |
#N/A |
Kiwi |
Lemon |
Banana |
<tbody>
</tbody>
Both columns have dynamic ranges. The problem with my formulas is that column B sheet 1 has a lot of 0's and #N/A's and the row number is different from Column c sheet 2, so formulas doesn't really work as it cannot find the real unique values.
I would really appreciate it if anyone could help me I'm very new to VBA, and I am just halfway through with my macro. this problem is holding me backs for weeks now.
Thanks!