Here are the steps to create a filter in Gmail:
1. Open Gmail.
2. In the search box at the top, click the Down arrow.
3. Enter your search criteria.
4. At the bottom of the search window, click Create filter.
5. Choose what you’d like the filter to do.
6. Click Create filter.
You can manage your filters from the “Filters and Blocked Addresses” pane on Gmail’s “Settings” page.