Use SUMPRODUCT.
=SUMPRODUCT(--(A1:A240=1),(B1:B240))
A1:A240 are your routes, B1:B240 is your ridership. 1 represents the
route. If your route is text, just be sure to enclose in quotes.
Cheers,
Steve
--
SteveG
------------------------------------------------------------------------
SteveG's Profile:
http://www.excelforum.com/member.php...fo&userid=7571
View this thread:
http://www.excelforum.com/showthread...hreadid=496927