Hi All,
I'm looking for a way to write a macro into VBA that will compare values in Column C to Column I, and when there's a match, cut the value in Column D and paste it into Column G. So, for example, if C22 matches I9, cut D22 and paste to G9.
By the time this macro is run, any duplicates within the same column would have been removed, (no two identical values within the same column), so there's now concern about multiple matches. Also, there's no limit to the number of rows that would need to be checked (this is going into a template, and the number of rows used will vary)
I'm only vaguely familiar with VLOOKUP, which is why I mention it, but it doesn't need to be the function used if there's a better way to go about this.
Thanks.
I'm looking for a way to write a macro into VBA that will compare values in Column C to Column I, and when there's a match, cut the value in Column D and paste it into Column G. So, for example, if C22 matches I9, cut D22 and paste to G9.
By the time this macro is run, any duplicates within the same column would have been removed, (no two identical values within the same column), so there's now concern about multiple matches. Also, there's no limit to the number of rows that would need to be checked (this is going into a template, and the number of rows used will vary)
I'm only vaguely familiar with VLOOKUP, which is why I mention it, but it doesn't need to be the function used if there's a better way to go about this.
Thanks.