Hi,
I'll gladly to help you out with your project, but I need you to clarify some questions:
1. Do you use Mac or Windows? this is important, because some codes created in windows platform won't work on Mac. While I only have windows here.
2. In your point 1 (if name is found) you mentioned "up to five" first record, could you please explain further with example?
3. In your point 2 (If not found) you only have unique ID until row 829, if the new record exceed this line, can I create new unique ID by adding the previous by 1?
Let me know if you're interested to working with me.
Cheers,
Daniel