1

I have a worksheet with 3 columns (A,B,C).

I want to check for duplicates between column A and C If a cell value in A matches a cell value in C then I want to copy B in that row to another location (let's say column E).

The cells are located in different rows on columns A and C. The copy from B column needs to be on the same row as the duplicate on A, not on C.

How can I do this with Excel VBA? Thanks a lot!

1
  • Try this =IF(COUNTIF($A$1:$A$1,C1)>0,B1,"") Commented Jun 27, 2015 at 0:24

1 Answer 1

1

Perhaps you can use a formula like:

=IF(COUNTIF(C:C,A1)>0,B1,"")

It should give you what you want. Put that in column E, and copy it down for what you need.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.