It's really hard to figure out (well, not that hard...

) what you're trying to do.
Post your Workbook. That will Help immensly!
And at first glance, look at VLOOKUP in the Excel Helpfile - It's a bomber formula that might/probably will fit your needs.
I don't think you'll need VBA with this one, but like I said, post an example so we can whack away at it and get you an answer.
Hope that helps,
Smitty