Cross reference cell values then copy data between sheets


New Member
This one is a bit difficult for me to explain, so i included screenshots to help....maybe

I've have to cover some of the data as its personal information source<source

<source (separate="" worksheet)
destination<destination<destination (separate="" worksheet)

OK, so on the source you see column H, the last 3 characters are 300, i want the time part of the value in cell R to be copied to destination worksheet in column E

Now the tricky part, the destination worksheet has numbers ranging from 101 to 419, however they aren't sequential or go in ascending order

So what i need, is some kind of code which will look at all the values on the destination worksheet column A, and if it matches the last 3 character values in column H on source worksheet, it then copies the time value to the equivalent row in column E, if not it moves to next row

Im not sure if makes sense....

any guidance would be appreciated</destination<destination></source
Last edited:

steve the fish

Well-known Member
Hi. Try this:


Alter the ranges as necessary.

Some videos you may like

This Week's Hot Topics

  • Get External Data (long shot question!)
    This is likely a long shot but I am wondering if it is at all possible for Excel to somehow 'change' the contents of a URL that is being linked to...
  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • Cell Formatting
    Good Morning, I need to format a few different cells in the following manners: A1 has to always add a colon (:) after whatever is typed in by a...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • Workbook_Change stopped working !
    I am working on an app to speed up & automate processing of Credit Cards statements. After data is input from a CSV file, it is presented to the...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...