The funding distributed by the department for program grants pursuant to the appropriation received by the department shall be distributed to each county or multicounty area by a formula based on population, need, and other criteria as determined by the department.