Cerca record personalizzati, inseriti su label, in un foglio google

OK, you are using google apps script.

Could I recommend this approach instead, which I believe is an improvement over the one you are using, with the bugs removed.

If I understand correctly, you want to search your google sheet data by email address of the user, and return only their entries ?