Google-sheets – VLOOKUP stops working after 500 rows

google sheetsvlookup

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:

=IFERROR(VLOOKUP(C3,'Main Database'!B21:S590,3,True),"")

Best Answer

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.)