Understand that the main reason paint goes lumpy and hard when stored in a can is because of air in the can. If you can eliminate the air, your paint will remain useable for years.
Start by thoroughly stirring the leftover paint you want to keep. After stirring, place the funnel into the mouth of a clean leftover plastic water or juice bottle and slowly pour the paint into the bottle, filling it up to the neck.
Eliminate any air in the bottle by dropping some glass marbles into the bottle, raising the paint level up to the top.
Tighten on the screw cap and use a felt tip marking pen to identify the paint, e.g. "downstairs bathroom." This way you can easily figure out where you used that particular paint and a few years later will be able to easily find the paint you need for a touchup.
Finish sealing the bottle by running a strip of painters tape or masking tape around the neck of the bottle to provide an airtight seal.