In Google Sheets I have a search box that brings up the information for a person when you type in their id. It works perfectly up until ID 512, which is row 374. The formula I use:
Ensure that the material in Main Database is sorted by ascending contents of the first column in it.
(It's safest to select the whole range manually and then sort it.)