match 2 columns and return value of another

H

Haz

Hi,

I would like to match col A with Col Q, for instance if there is 100 in Col
A and Q, then i would like to return the value in Col I which represents the
vlaue for col A 100 in the same row. I hope this is clear. It would save me
alot of manual input.

Any help here would be apprecaited.

Thanks
 
D

Don Guillett

Sub findmatchs()
For i = 2 To cells(rows.count,"a").end(xlup).row
If Cells(i, "a") = Cells(i, "q") Then mymatch=Cells(i, "I")
msgbox mymatch
Next i
End Sub
 

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