Vlookup or match function?

B

Belinda7237

I can't quite get this to work, hoping someone can help:

I have two worksheets and if there is a match i want it to return a value:

sheet 1
A1 = package #
b1 = rework reason (this field is blank and is where i want the data
populated)

sheet 2
f1 = package number
g1 = rework reason

If there is a matching package number on sheet 2, then i want the rework
reason in column G to be placed in the rework reason in sheet 1 column B.

Any help is appreciated
 
T

T. Valko

sheet 2
f1 = package number
g1 = rework reason

Assuming that the above is actually a TABLE of data.

Entered on Sheet1 B1:

=VLOOKUP(A1,Sheet2!F:G,2,0)

If no match is found the formula will return #N/A.
 
B

Belinda7237

thanks, that worked and it was easy to do!

T. Valko said:
Assuming that the above is actually a TABLE of data.

Entered on Sheet1 B1:

=VLOOKUP(A1,Sheet2!F:G,2,0)

If no match is found the formula will return #N/A.
 
B

Belinda7237

Actually, it didnt work as i wanted - as i look at the data the reasons dont
match. There may not be a match for every item and the data isnt
chronological. Meaning the package number that is on sheet 1 may be in cell
A2 on sheet 1 and it may be in cell F6 on sheet 2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top