The first is a simple range find.

If you are using a Table, inserting another row after its last row is a bit more work. I would need to know the name of the table.