3
I’m having a doubt and I can’t get a plausible answer.
I have a spreadsheet in which I would like to make a comparison between two columns and say to it that if there is a value that is not duplicated, that same value is moved to a new column. For example:
I have the Column "To" and "B", in these columns there is a sequence of 6-digit numbers, for example:
A B
519294 519522
519364 519499
519365 519501
519366 519500
519381 519494
519382 519492
519389 519493
519422 519491
519428 519483
I want to compare column "A" using column "B", if the value of column "A" is not found in column "B" that same value should be moved to a new column "C" for example.
If possible I would like to use a formula or a VBA that made this query and if it was a false value where the said value was not found in column "B" it could be moved.
I am very grateful if someone can help me with a VBA or even Formula.
something like in C4 put
=IF(A4==B4; ; A4)
?– JJoao
It’s not clear what you want to do. Do you want to move the value from column A to C only if it exists in B? Should the cell in A be empty or keep the value? What about C cells that do not receive a value? Also, your example is not good, all numbers are different, there is no match. It would be better if you change your example and also present the expected result with the formula or with VBA.
– Molx